123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896 |
- <?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="">
- <init>
- <P0108list>
- <P0108/>
- </P0108list>
- </init>
- <main>
- <gridlist>
- <gridinfo/>
- </gridlist>
- <errlist>
- <gridinfo/>
- </errlist>
- <ptlist>
- <gridinfo/>
- </ptlist>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <srchflag/>
- <jipcode/>
- <dayflag/>
- <readdrid/>
- <brateflag>T</brateflag>
- <batchflag>E</batchflag>
- <uscmflag/>
- <uscmid/>
- <pid/>
- <hiflag/>
- <cdgubnflag>T</cdgubnflag>
- </send>
- <temp>
- <gridlist/>
- </temp>
- <hidden>
- <drflag/>
- <deptsum/>
- <specflag/>
- <uscmlist>
- <uscminfo>
- <listid/>
- <listnm/>
- </uscminfo>
- </uscmlist>
- <deptflag/>
- <roomdeptflag/>
- <ptflag/>
- <specshow/>
- <esdflag/>
- <grupflag/>
- <u18yn/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRSTP01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRSTP01817" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRSTP01903" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/uscmlist/uscminfo"/>
- <submission id="TXSTP01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </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="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
- var FLAG = "";
- var FLAGNM = "";
- var SPECFLAG = "";
- var PT_ROW = 0;
-
- function fGetPtList() {
-
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
-
- /*
- if (fromdd != todd) {
- messageBox("환자 목록 조회는 1일만 가능합니다.", "E999");
- return;
- }
- */
-
- fSetPtControl(true);
-
- if (grd_main.rows - grd_main.fixedRows > 1) {
- var row = grd_main.row;
-
- var dRow = row - grd_main.fixedRows + 1;
-
- if (PT_ROW > 0) {
- grd_main.rowStyle(PT_ROW, "data", "background-color") = "#ffffff";
- grd_main.rowStyle(PT_ROW, "data", "font-weight") = "";
- }
- grd_main.rowStyle(row, "data", "background-color") = "#ffd2d2";
- grd_main.rowStyle(row, "data", "font-weight") = "bold";
-
- PT_ROW = row;
- }
-
- // 조회구분에 따른 조건변경 by 조중래 20170821
- // 16D : 의사별 환자별 선택진료비 집계, 26D : 어린이병원 의사별 환자별 수익집계, 27D : 18세 이하 의사별 환자별 수익집계
- if (model.getValue("/root/send/srchflag") == "26D"
- || model.getValue("/root/send/srchflag") == "27D") {
- model.setValue("/root/send/readdrid", model.getValue("/root/main/gridlist/gridinfo[" + dRow + "]/earndrid"));
- } else {
- model.setValue("/root/send/readdrid", model.getValue("/root/main/gridlist/gridinfo[" + dRow + "]/readdrid"));
- }
-
- fSetDynamicGrid(grd_ptlist, "/root/main/ptlist", "TRSTP01802");
-
- var cnt = instance1.selectNodes("/root/main/ptlist/gridinfo").length;
- var prevPid = "";
- var flag = true;
- for (var i = 1; i <= cnt; i++) {
- var pid = model.getValue("/root/main/ptlist/gridinfo[" + i + "]/pid");
- if (pid == null || pid == "") {
- break;
- }
-
- if (pid != prevPid) {
- flag = !flag;
- prevPid = pid;
- }
-
- grd_ptlist.rowStyle(i + grd_ptlist.fixedRows - 1, "data", "background-color") = flag ? "#f4f4f4" : "#ffffff";
- }
- }
-
- function fSetPtControl(show) {
-
- var val = show ? (parseInt(grd_ptlist.attribute("width")) + 10) : 0;
-
- grd_main.attribute("width") = String(1195 - val);
- line1.attribute("x2") = String(1195 - val);
- btn_excel.attribute("left") = String(1153 - val);
-
- caption2.visible = show;
- grd_ptlist.visible = show;
- btn_excel2.visible = show;
- btn_ptclose.visible = show;
-
- if (!show) {
- if (PT_ROW > 0) {
- grd_main.rowStyle(PT_ROW, "data", "background-color") = "#ffffff";
- grd_main.rowStyle(PT_ROW, "data", "font-weight") = "";
- PT_ROW = 0;
- }
- }
- }
-
- function fSetDynamicGrid(grd, ref, sid) {
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
-
- model.resetInstanceNode(ref + "/gridinfo");
- grd.refresh();
-
- var cols = grd.cols;
- for (var i = 0; i < cols; i++) {
- grd.removeColumn(false);
- }
- grd.refresh();
-
- model.removeNode("/root/temp");
- model.makeNode("/root/temp");
-
- if (!submit(sid, false)) {
- return;
- }
-
- var attr = model.getValue("/root/temp/header/attr");
- if (attr == null || attr.length < 1) {
- return;
- }
-
- var attrArr = attr.split("^");
-
- var width = model.getValue("/root/temp/header/width");
- var widthArr = width.split("^");
-
- var hIdx = grd.rowheader != "" ? 1 : 0;
-
- for (var i = 0; i < attrArr.length; i++) {
- grd.addColumn(attrArr[i], false);
- grd.colWidth(i + hIdx) = widthArr[i];
- }
-
- grd.caption = model.getValue("/root/temp/header/caption");
-
- model.copyNode(ref, "/root/temp/gridlist");
- grd.refresh();
- }
-
- function fSetErrControl(show) {
- grd_main.attribute("height") = show ? "300" : "675";
- cap_err.visible = btn_errclose.visible = line_err.visible = btn_errxls.visible = grd_err.visible = show;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- btn_excel2.attribute("left") = "1153px";
- chk_deptsum.attribute("top") = "32px";
- chk_specflag.attribute("top") = "32px";
- chk_uscm.attribute("top") = "32px";
- cmb_uscm.attribute("top") = "31px";
- chk_deptflag.attribute("top") = "32px";
- cap_pid.attribute("top") = "32px";
- ipt_pid.attribute("top") = "31px";
- chk_roomdeptflag.attribute("top") = "32px";
- chk_specshow.attribute("top") = "32px";
- chk_esdflag.attribute("top") = "32px";
- chk_grupflag.attribute("top") = "32px";
- cap_cdgubnflag.attribute("top") = "32px";
- cmb_cdgubnflag.attribute("top") = "31px";
- chk_u18yn.attribute("left") = "865px";
- chk_u18yn.attribute("top") = "32px";
-
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
- model.setValue("/root/send/todd", getCurrentDate().toDate().getAddDate(-1).getDateFormat());
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
-
- FLAG = getScreenMenuParameter();
- model.setValue("/root/send/srchflag", FLAG);
-
- if (FLAG == "11") {
- FLAGNM = "진료과별 의사별 수익 집계";
- } else if (FLAG == "12D") {
- FLAGNM = "진료과별 의사별 급비 항목별 수익 집계";
- chk_deptsum.visible = true;
- } else if (FLAG == "12") {
- FLAGNM = "급비 항목별 수익 집계";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- } else if (FLAG == "13") {
- FLAGNM = "수익 명세서";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- } else if (FLAG == "14") {
- FLAGNM = "과별 보험 유형별 수익 명세서";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- chk_specshow.visible = true;
- } else if (FLAG == "15") {
- FLAGNM = "과별 수가 종류별 수익 명세서";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- } else if (FLAG == "16") {
- FLAGNM = "선택 진료비 의사별 일자별 수익 집계";
- chk_specflag.visible = true;
- chk_hiflag.visible = false;
- } else if (FLAG == "17") {
- FLAGNM = "선택 진료 수당 집계";
- cap_jipcode.visible = true;
- cmb_jipcode.visible = true;
- chk_drflag.visible = true;
- cap_brate.visible = true;
- cmb_brate.visible = true;
- chk_ptflag.visible = true;
-
- pamfGetCodeList(new Array("P0108" ), new Array("/root/init/P0108list"));
- model.setValue("/root/send/jipcode", "B");
- cmb_jipcode.refresh();
- } else if (FLAG == "18") {
- FLAGNM = "병동별 수익 집계";
- chk_roomdeptflag.visible = true;
- chk_hiflag.visible = false;
- } else if (FLAG == "26") {
- FLAGNM = "어린이병원 수익 집계";
- chk_hiflag.visible = false;
- chk_u18yn.visible = true;
- } else if (FLAG == "20") {
- FLAGNM = "수가 코드별 수익 집계";
- cap_brate.visible = true;
- cmb_brate.visible = true;
-
- chk_uscm.visible = true;
- cmb_uscm.visible = true;
-
- chk_deptflag.visible = true;
- chk_hiflag.visible = false;
-
- chk_grupflag.visible = true;
-
- submit("TRSTP01903");
-
- cmb_uscm.select(0);
-
- } else if (FLAG == "14S") {
- FLAGNM = "보험 유형별 수익 집계";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- } else if (FLAG == "14SI") {
- FLAGNM = "선택 진료비 보험 유형별 수익 집계";
- } else if (FLAG == "18R") {
- FLAGNM = "병동별 병실별 수익 집계";
- chk_hiflag.visible = false;
- } else if (FLAG == "21Day") {
- FLAGNM = "진료과별 일자별 수익 집계";
- } else if (FLAG == "23") {
- FLAGNM = "센터별 진료과별 급비항목별 수익 집계";
- } else if (FLAG == "P") {
- cap_pid.visible = true;
- ipt_pid.visible = true;
- FLAGNM = "환자별 수익 집계";
- } else if (FLAG == "ES") {
- chk_hiflag.visible = false;
- chk_esdflag.visible = true;
- FLAGNM = "선택 진료 가상 수익 집계";
- } else if (FLAG == "PR") {
- chk_uscm.visible = true;
- cmb_uscm.visible = true;
- submit("TRSTP01903");
- cmb_uscm.select(0);
- FLAGNM = "과내 검사 판독의 및 처방의별 수익 집계";
- } else if (FLAG == "RE") {
- chk_hiflag.visible = false;
- FLAGNM = "영상의학과 선택진료 판독의 기준 수익 집계";
- } else if (FLAG == "25") {
- FLAGNM = "진단서 내역";
- cap_brate.visible = true;
- cmb_brate.visible = true;
- cap_cdgubnflag.visible = true;
- cmb_cdgubnflag.visible = true;
- } else if (FLAG == "dent") {
- chk_hiflag.visible = false;
- FLAGNM = "구강악안면외과 수익 집계";
- }
-
- cap_title.value = FLAGNM;
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" style="x1:1119px; y1:27px; x2:1119px; y2:54px; border-color:#FFD799; border-left-style:solid; "/>
- <caption id="caption21" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">조회기간 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:30px; width:56px; height:20px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (FLAG.length < 1) {
- return;
- }
-
- fSetErrControl(false);
- fSetPtControl(false);
-
- SPECFLAG = "";
-
- if (model.getValue("/root/hidden/drflag") == "Y" ||
- model.getValue("/root/hidden/deptsum") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "S");
-
- } else if (model.getValue("/root/hidden/specflag") == "Y") {
-
- SPECFLAG = "Y";
-
- model.setValue("/root/send/srchflag", FLAG + "E");
-
- } else if (model.getValue("/root/hidden/deptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", "22");
-
- } else if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "D");
-
- } else if (model.getValue("/root/hidden/ptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "P");
-
- } else if (model.getValue("/root/hidden/specshow") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "spec");
-
- } else if (model.getValue("/root/hidden/esdflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "D");
-
- } else if (model.getValue("/root/hidden/grupflag") == "Y") {
-
- model.setValue("/root/send/srchflag", "24");
-
- } else if (model.getValue("/root/hidden/u18yn") == "Y") { // 어린이병원 수익에서 18세 이하 추출 시
-
- model.setValue("/root/send/srchflag", "27");
-
- } else {
-
- model.setValue("/root/send/srchflag", FLAG);
- }
-
- model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
-
- if (FLAG == "P" && model.getValue("/root/send/pid") == "" && model.getValue("/root/send/dayflag") != "Y") {
- messageBox("모든 환자 조회는 하루만 조회할 수 있습니다.", "E999");
- return;
- }
-
- fSetDynamicGrid(grd_main, "/root/main/gridlist", "TRSTP01802");
-
- if (model.getValue("/root/main/gridlist/gridinfo/errflag") == "Y") {
- grd_main.rowStyle(1, "data", "background-color") = "yellow";
- grd_main.rowStyle(1, "data", "color") = "red";
- grd_main.rowStyle(1, "data", "font-weight") = "bold";
- } else {
-
- if (FLAG == "P") {
- return;
- }
-
- var cnt = instance1.selectNodes("/root/main/gridlist/gridinfo").length;
-
- for (var i = 1; i <= cnt; i++) {
- var dept = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/earndeptnm");
-
- if (dept == "") {
- dept = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/wardnm");
- }
-
- var drname = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/earndrname");
- var hngnm = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/hngnm");
- var insunm = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/insukindnm");
-
- var row = i + grd_main.fixedRows - 1;
-
- if (dept == "소계" || dept == "합계" || drname == "계" || hngnm == "합계" || insunm == "합계") {
-
- var color = (dept == "소계" || drname == "계") ? "#ffffc8" : "#ffffa0";
- grd_main.rowStyle(row, "data", "background-color") = color;
- grd_main.rowStyle(row, "data", "font-weight") = "bold";
- }
-
- if (FLAG == "18R" || FLAG == "13") {
- var sinfo = model.getValue("/root/main/gridlist/gridinfo[" + i + "]/suminfo").split(",");
- var slv = sinfo[0];
- var scol = sinfo[1];
-
- if (slv > 0) {
-
- if (slv == 3) {
- color = "#ffffe6";
- } else if (slv == 2) {
- color = "#ffffc8";
- } else if (slv == 1) {
- color = "#ffffa0";
- }
-
- grd_main.rowStyle(row, "data", "background-color") = color;
- if (scol > 0) {
- grd_main.cellStyle("font-weight", row, scol) = "bold";
- }
- grd_main.rowStyle(row, "data", "font-weight") = "bold";
- }
- }
- }
-
- if (cnt > 1 && ( FLAG == "21Day" || FLAG == "23" )) {
- grd_main.rowStyle(cnt + grd_main.fixedRows - 1, "data", "font-weight") = "bold";
- grd_main.rowStyle(cnt + grd_main.fixedRows - 1, "data", "background-color") = "#ffffa0";
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" navindex="30" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1153px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var today = model.getValue("/root/send/fromdd");
- var filename = window.fileDialog("save", ",", false, cap_title.value + "_" + today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_main.saveExcel(filename, "sheetname:" + FLAGNM + ";colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:480px; height:14px; font-family:돋움; vertical-align:middle; ">수익집계</caption>
- <caption id="caption6" style="left:204px; top:34px; width:15px; height:15px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:110px; top:31px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="1" inputtype="date" style="left:217px; top:31px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:70px; width:90px; height:14px; ">조회 결과</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195x; y2:85px; "/>
- <datagrid id="grd_main" nodeset="/root/main/gridlist/gridinfo" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:90px; width:1195px; height:675px; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (!grd_main.isCell(event.target)) {
- return;
- }
-
- if (grd_main.row < grd_main.fixedRows) {
- return;
- }
-
- if (model.getValue("/root/main/gridlist/gridinfo/errflag") == "Y") { // 오류 항목 조회
- fSetErrControl(true);
- fSetDynamicGrid(grd_err, "/root/main/errlist", "TRSTP01817");
- }
-
- // 선택진료비 의사별 일자별 수입집계
- if (FLAG == "16" && SPECFLAG != "Y") {
-
- model.setValue("/root/send/srchflag", "16D");
- fGetPtList();
- }
-
- // 어린이병원 수입집계
- if (FLAG == "26") {
-
- if (model.getValue("/root/hidden/u18yn") == "Y") {
- model.setValue("/root/send/srchflag", "27D");
- } else {
- model.setValue("/root/send/srchflag", "26");
- }
-
- fGetPtList();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cap_jipcode" class="search_name" visibility="hidden" style="left:500px; top:32px; width:86px; height:17px; ">집계코드 :</caption>
- <select1 id="cmb_jipcode" ref="/root/send/jipcode" class="input_search" visibility="hidden" appearance="minimal" style="left:590px; top:31px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0108list/P0108">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_errclose" class="btn2_letter2" visibility="hidden" style="left:85px; top:400px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetErrControl(false);
- ]]>
- </script>
- </button>
- <caption id="cap_err" class="tit_2" visibility="hidden" style="left:0px; top:405px; width:80px; height:13px; ">오류 내역</caption>
- <datagrid id="grd_err" nodeset="/root/main/errlist/gridinfo" visibility="hidden" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:425px; width:1195px; height:340px; "/>
- <line id="line_err" class="line_1" visibility="hidden" style="x1:0px; y1:420px; x2:1195px; y2:420px; "/>
- <button id="btn_errxls" class="btn2_letter4" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1131px; top:400px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_err.saveExcel(filename, "sheetname:오류내역;colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <button id="btn_excel2" class="btn2_letter2" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1110px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var today = model.getValue("/root/send/fromdd");
- var filename = window.fileDialog("save", ",", false, cap_title.value + "(환자목록)_" + today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- grd_ptlist.saveExcel(filename, "sheetname:" + FLAGNM + "(환자목록);colhiddenextend:false;rowhiddenextend:false");
-
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" visibility="hidden" style="left:605px; top:70px; width:75px; height:13px; ">환자목록</caption>
- <line id="line3" class="line_1" style="x1:605px; y1:85px; x2:1195px; y2:85px; "/>
- <button id="btn_ptclose" class="btn2_letter2" visibility="hidden" style="left:685px; top:65px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetPtControl(false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_ptlist" nodeset="/root/main/ptlist/gridinfo" visibility="hidden" backcoloralternate="transparent" colsep="^" frozencols="2" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:605px; top:90px; width:590px; height:675px; "/>
- <select id="chk_drflag" ref="/root/hidden/drflag" visibility="hidden" overflow="visible" appearance="full" style="left:700px; top:32px; width:83px; 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/drflag") == "Y" && model.getValue("/root/hidden/ptflag") == "Y") {
- model.setValue("/root/hidden/ptflag", "");
- chk_ptflag.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="chk_deptsum" ref="/root/hidden/deptsum" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:62px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진료과별 합계</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_specflag" ref="/root/hidden/specflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:92px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선택진료비 제외 내역</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="cap_brate" class="search_name" visibility="hidden" style="left:325px; top:32px; width:95px; height:17px; ">입원/외래 :</caption>
- <select1 id="cmb_brate" ref="/root/send/brateflag" class="input_search" visibility="hidden" appearance="minimal" style="left:425px; top:31px; width:60px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <button id="btn_file" class="btn4_letter4" style="left:949px; top:30px; width:80px; height:22px; ">
- <caption>파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- SPECFLAG = "";
-
- if (model.getValue("/root/hidden/drflag") == "Y" ||
- model.getValue("/root/hidden/deptsum") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "S");
-
- } else if (model.getValue("/root/hidden/specflag") == "Y") {
-
- SPECFLAG = "Y";
-
- model.setValue("/root/send/srchflag", FLAG + "E");
-
- } else if (model.getValue("/root/hidden/deptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", "22");
-
- } else if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "D");
-
- } else if (model.getValue("/root/hidden/ptflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "P");
-
- } else if (model.getValue("/root/hidden/specshow") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "spec");
-
- } else if (model.getValue("/root/hidden/esdflag") == "Y") {
-
- model.setValue("/root/send/srchflag", FLAG + "D");
-
- } else if (model.getValue("/root/hidden/grupflag") == "Y") {
-
- model.setValue("/root/send/srchflag", "24");
-
- } else if (model.getValue("/root/hidden/u18yn") == "Y") { // 어린이병원 수익에서 18세 이하 추출 시
-
- model.setValue("/root/send/srchflag", "27");
-
- } else {
-
- model.setValue("/root/send/srchflag", FLAG);
- }
-
- model.setValue("/root/send/dayflag", (model.getValue("/root/send/fromdd") == model.getValue("/root/send/todd")) ? "Y" : "N");
-
- submit("TXSTP01804");
- btn_log.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_log" class="btn4_letter4" style="left:1030px; top:30px; width:80px; height:22px; ">
- <caption>생성로그</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(1, 'D');
- zsbfOpenBatchLogPopup("stspammngtmgr.StsPamFileBatch", getCurrentDate(), todd.getDateFormat());
- ]]>
- </script>
- </button>
- <select id="chk_uscm" ref="/root/send/uscmflag" visibility="hidden" overflow="visible" appearance="full" style="left:590px; top:55px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인별 등록 수가 적용</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select1 id="cmb_uscm" ref="/root/send/uscmid" class="combo_search" visibility="hidden" appearance="minimal" style="left:735px; top:55px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/uscmlist/uscminfo">
- <label ref="listnm"/>
- <value ref="listid"/>
- </itemset>
- </choices>
- </select1>
- <select id="chk_deptflag" ref="/root/hidden/deptflag" visibility="hidden" overflow="visible" appearance="full" style="left:500px; top:55px; width:85px; 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/deptflag") == "Y") {
- model.setValue("/root/hidden/grupflag", "");
- chk_grupflag.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="chk_roomdeptflag" ref="/root/hidden/roomdeptflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:120px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>진료과 포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (FLAG == "18") {
- if (model.getValue("/root/hidden/roomdeptflag") == "Y") {
- chk_hiflag.visible = true;
- } else {
- chk_hiflag.visible = false;
- }
- }
- ]]>
- </script>
- </select>
- <caption id="cap_pid" class="search_name" visibility="hidden" style="left:325px; top:10px; width:95px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" visibility="hidden" style="left:417px; top:9px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setValue("/root/send/pid", ipt_pid.currentText);
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select id="chk_hiflag" ref="/root/send/hiflag" overflow="visible" appearance="full" style="left:875px; top:32px; width:68px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>건진제외</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_ptflag" ref="/root/hidden/ptflag" visibility="hidden" overflow="visible" appearance="full" style="left:792px; top:32px; width:75px; 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/ptflag") == "Y" && model.getValue("/root/hidden/drflag") == "Y") {
- model.setValue("/root/hidden/drflag", "");
- chk_drflag.refresh();
- }
- ]]>
- </script>
- </select>
- <select id="chk_specshow" ref="/root/hidden/specshow" visibility="hidden" overflow="visible" appearance="full" style="left:727px; top:10px; width:143px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>선택 진료비 별도 표시</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_esdflag" ref="/root/hidden/esdflag" visibility="hidden" overflow="visible" appearance="full" style="left:325px; top:150px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>영상의학과, 핵의학과만 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_grupflag" ref="/root/hidden/grupflag" visibility="hidden" overflow="visible" appearance="full" style="left:845px; top:55px; width:95px; 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/grupflag") == "Y") {
- model.setValue("/root/hidden/deptflag", "");
- chk_deptflag.refresh();
- }
- ]]>
- </script>
- </select>
- <caption id="cap_cdgubnflag" class="search_name" visibility="hidden" style="left:500px; top:130px; width:104px; height:17px; ">진단서 구분 :</caption>
- <select1 id="cmb_cdgubnflag" ref="/root/send/cdgubnflag" class="input_search" visibility="hidden" appearance="minimal" style="left:610px; top:130px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>진단서</label>
- <value>01</value>
- </item>
- <item>
- <label>소견서</label>
- <value>02</value>
- </item>
- <item>
- <label>진료확인서</label>
- <value>03</value>
- </item>
- <item>
- <label>입퇴원확인서</label>
- <value>04</value>
- </item>
- <item>
- <label>상해진단서</label>
- <value>05</value>
- </item>
- <item>
- <label>출생증명서</label>
- <value>06</value>
- </item>
- <item>
- <label>사망진단서</label>
- <value>07</value>
- </item>
- <item>
- <label>장애진단서</label>
- <value>08</value>
- </item>
- <item>
- <label>후유장애진단서</label>
- <value>09</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- </select1>
- <select id="chk_u18yn" ref="/root/hidden/u18yn" visibility="hidden" overflow="visible" appearance="full" style="left:955px; top:55px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>만18세이하</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/hidden/grupflag") == "Y") {
- model.setValue("/root/hidden/deptflag", "");
- chk_deptflag.refresh();
- }
- ]]>
- </script>
- </select>
- </xhtml:body>
- </xhtml:html>
|