123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <cnfmmanlst>
- <item>
- <cnfmmanid/>
- <prcpdd/>
- <endo/>
- <sendo/>
- <colon/>
- </item>
- </cnfmmanlst>
- <endodetllst>
- <item>
- <prcpdd/>
- <pid/>
- <hngnm/>
- <calcscorcd/>
- <excuexectodd/>
- <cnfmman/>
- </item>
- </endodetllst>
- <export/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchdate/>
- </send>
- <hidden>
- </hidden>
- <init>
- <baseinfo>
- <yearlst/>
- <recmpkglst/>
- </baseinfo>
- <srch>
- <fromdd/>
- <srchdate>1</srchdate>
- </srch>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 일자초기화
- fInit();
-
-
- // model.setValue("/root/init/srch/fromdd" , getCurrentDate());
- // model.setValue("/root/init/srch/todd" , getCurrentDate());
- //
- // model.setValue("/root/init/srch/year" , getCurrentDate().substr(0,4));
- // model.setValue("/root/init/srch/qurtyy" , "03");
-
- // 기관코드 초기화
- // model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
- //
- // // 공통코드 조회
- // zbcfGetCodeList( new Array("P0167","R0009"), new Array("/root/init/baseinfo/yearlst") );
- //
- // // 건진 공통코드 조회
- // healGetCodeList( new Array("S210"), new Array("/root/init/baseinfo/recmpkglst") );
- //
- // rdo_ddflag.dispatch("xforms-select");
-
- //추천현황 그리드를 동적으로 그린다.
- // fMakeRecmGrd();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- var curDt = getCurrentDate().substr(0,6);
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- rdo_search.disabled = false;
- model.refresh();
- }
-
- /*
- * 화면merge와 소계 및 총계를 생성한다.
- */
- function fSetRcptSum(vFlag) {
- // 그리드 merge 및 합계 초기화
-
- if(vFlag == "A") {
- grd_cnfmmanlst.subtotalPosition = "below";
- grd_cnfmmanlst.multiTotals = true;
- grd_cnfmmanlst.subtotal("clear", 0, 0);
- grd_cnfmmanlst.subtotal("clear", grd_cnfmmanlst.colRef("cnfmmanid") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "소 계" );
- // grd_cnfmmanlst.subtotal("clear", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "총 계" );
- // 판독의별 현황
- for(var i = 0; i < grd_cnfmmanlst.cols ; i++) {
-
- // 소계
- if(i >= grd_cnfmmanlst.colRef("endo") ) {
- grd_cnfmmanlst.subtotal("sum", grd_cnfmmanlst.colRef("cnfmmanid") , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "소 계" );
- // grd_cnfmmanlst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_cnfmmanlst.colRef("cnfmmanid") , "총 계" );
- }
- }
- }else if(vFlag == "B"){
- grd_endodetllst.subtotalPosition = "below";
- grd_endodetllst.multiTotals = true;
- grd_endodetllst.subtotal("clear", 0, 0);
-
- // 추천내역
- for(var i =0; i < grd_endodetllst.cols ; i++) {
-
- // 건수
- if(i == grd_endodetllst.colRef("pkgcd") ) {
- grd_endodetllst.subtotal("count", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#808080; color:#ffffff; font-weight:bold ", grd_endodetllst.colRef("pid") , "건수/계" );
- }
- // 소계
- if( i >= grd_endodetllst.colRef("recmpoint") && i <= grd_endodetllst.colRef("recmpoint") ) {
- grd_endodetllst.subtotal("sum", -1 , i ,"format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#ffffff; font-weight:bold ", grd_endodetllst.colRef("pid") , "건수/계" );
-
- }
-
- }
- }
-
- }
-
- /**
- * @desc : 직원정보가져오기
- */
- function fGetEmpInfo(vEmplNoNode, vEmpNmNode){
- model.makeNode("/root/temp/userpopupinfo/param");
- model.makeNode("/root/temp/userpopupinfo/flag");
- model.makeNode("/root/temp/userpopupinfo/searchitem");
-
- model.setValue("/root/temp/userpopupinfo/param" , "_OneS");
- model.setValue("/root/temp/userpopupinfo/flag" , "usernm");
- model.setValue("/root/temp/userpopupinfo/searchitem" , "사용자명");
-
- model.removeNodeset("/root/hidden/onerowselect/list");
-
- modal("SPZSU10103_사용자부서조회", "", "200", "200", "SPZSU10103","/root/temp/userpopupinfo","/root/main/temp");
-
- var iParam = getParameter("SPZSU10103_");
- model.makeNode("/root/hidden/onerowselect");
- model.makeNode("/root/main/ptbs/ptbs_recmernm");
- setCSVToNode("/root/hidden/onerowselect", iParam);
-
- model.setValue(vEmplNoNode , model.getValue("/root/hidden/onerowselect/list/userid") );
- model.setValue(vEmpNmNode , model.getValue("/root/hidden/onerowselect/list/usernm") );
-
- clearParameter("SPZSU10103_");
- model.removeNodeset("/root/temp/userpopupinfo");
- model.refresh();
- }
-
- /**
- * @desc : 추천현황 그리드를 동적으로 그린다.
- */
- function fMakeRecmGrd() {
- var cap = "";
- var addCol = 1;
- var front_cap = "기관^사원번호^성명^소속^";
- var back_cap = "점수";
-
- grd_cnfmmanlst.addColumn("ref:instnm; type:output;");
- grd_cnfmmanlst.addColumn("ref:recmempid; type:output;");
- grd_cnfmmanlst.addColumn("ref:usernm; type:output;");
- grd_cnfmmanlst.addColumn("ref:pos; type:output;");
-
- cap += front_cap;
-
- for(var i=1; i <= getNodesetCount("/root/init/baseinfo/recmpkglst/S210"); i++) {
- var cdid = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdid");
- var cdnm = model.getValue("/root/init/baseinfo/recmpkglst/S210[" + i + "]/cdnm");
- if(cdid != "") {
- cap += cdid + "^";
- grd_cnfmmanlst.addColumn("ref:pkg" + addCol + "; type:output;");
- addCol++;
- }
- }
- cap += back_cap;
- grd_cnfmmanlst.addColumn("ref:recmpoint; type:output;");
-
- grd_cnfmmanlst.caption = cap;
- grd_cnfmmanlst.resizeCells();
- grd_cnfmmanlst.rebuild();
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHS03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cnfmmanlst"/>
- <submission id="TRAHS03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/endodetllst"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1206;">
- <group id="group3" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption60" class="tit_1" style="left:0px; top:0px; width:183px; height:14px; font-family:돋움; vertical-align:middle; ">월별 건진내시경 현황</caption>
- </group>
- <group id="group2" style="left:4px; top:23px; width:1203px; height:42px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1202px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1132px; y1:2px; x2:1132px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1139px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = swt_endo.selectedIndex;
- var ret = false;
- var initdd = model.getValue("/root/init/srch/fromdd");
- var fromdd = initdd + "01";
- var todd = initdd + "31";
- model.setValue("/root/send/srchfromdd", fromdd);
- model.setValue("/root/send/srchtodd", todd);
- model.setValue("/root/send/srchdate", model.getValue("/root/init/srch/srchdate"));
- if(idx == "0") {
- ret = submit("TRAHS03601");
- if(ret) {
- grd_cnfmmanlst.rebuild();
- fSetRcptSum("A");
- }
- }else {
- ret = submit("TRAHS03602");
- if(ret) {
- fSetRcptSum("B");
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn6_letter4" visibility="visible" style="left:1046px; top:7px; width:80px; height:22px; ">
- <caption>액셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var idx = swt_endo.selectedIndex;
- if(idx == "0") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_cnfmmanlst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }else if(idx == "1") {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_endodetllst.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:975px; top:7px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 매개변수
- copyNodesetType("/root/main/export","/root/init/srch","replace");
-
- var idx = swt_endo.selectedIndex;
- if(idx == "0") {
- exeReportPreview("RPAHS03601", "XMLSTR", "/root/main/export","", "false","","","","","false");
- }else if(idx == "1") {
- exeReportPreview("RPAHS03602", "XMLSTR", "/root/main/export","", "false","","","","","false");
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" visibility="hidden" style="x1:1038px; y1:2px; x2:1038px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:9px; width:73px; height:17px; ">기준월 :</caption>
- <input id="ipt_srchfromdd" ref="/root/init/srch/fromdd" class="input_search" inputtype="date" format="yyyy-mm" appearance="input" style="left:90px; top:10px; width:110px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:240px; top:10px; width:95px; height:17px; ">조회기준 :</caption>
- </group>
- <switch id="swt_endo" style="left:4px; top:89px; width:1203px; height:656px; ">
- <case id="case_cnfmmanlst" selected="true">
- <datagrid id="grd_cnfmmanlst" nodeset="/root/main/cnfmmanlst/item" caption="판독의^날짜^상부내시경^수면내시경^대장내시경" colsep="^" colwidth="100, 68, 120, 120, 120" explorerbar="sortshow" mergecells="byrestriccol" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="cnfmmanid" style="text-align:center; "/>
- <col ref="prcpdd" style="text-align:center; "/>
- <col ref="endo" style="text-align:center; "/>
- <col ref="sendo" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="colon" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cnfmmanlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_endodetllst">
- <datagrid id="grd_endodetllst" nodeset="/root/main/endodetllst/item" caption="처방일자^차트번호^성명^처방명^실시일자^판독의" colsep="^" colwidth="135, 106, 100, 110, 135, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:1191px; height:644px; ">
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="calcscorcd" style="text-align:center; "/>
- <col ref="excuexectodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnfmman" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_endodetllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_cnfmmanlst" class="btn_sw" group="tab" selected="true" style="left:5px; top:67px; width:90px; height:22px; ">
- <caption>판독의별</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_cnfmmanlst");
- btn_cnfmmanlst.selected = true;
- // rdo_search.disabled = false;
- ]]>
- </script>
- </button>
- <button id="btn_endodetllst" class="btn_sw" group="tab" style="left:94px; top:67px; width:104px; height:22px; ">
- <caption>환자명단</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_endodetllst");
- btn_endodetllst.selected = true;
- // rdo_search.disabled = true;
- ]]>
- </script>
- </button>
- <select1 id="rdo_search" ref="/root/init/srch/srchdate" appearance="full" cols="2" overflow="visible" style="left:340px; top:35px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>처방일자</label>
- <value>1</value>
- </item>
- <item>
- <label>실시일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|