123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?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="">
- <main>
- <cond>
- <deptcd/>
- <fromdd/>
- <goodcd/>
- </cond>
- <goodinfo>
- <goodlist/>
- </goodinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //grd_ivinfo.fixedcellcheckbox(0, grd_ivinfo.colRef("chkyn")) = true;
-
- /*
- // 간호 하드코딩 조회
- model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
- model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- submit("TRMNW00001", false);
-
- var userid = getUserInfo("userid") ;
- //IV팀이면. 활성화
- if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
- btn_cmpl.disabled = false;
- btn_savrem.disabled = false;
- btn_cncl.disabled = false;
- } else { // IV팀이 아니면 비활성화
- btn_cmpl.disabled = true;
- btn_savrem.disabled = true;
- btn_cncl.disabled = true;
- }
- */
-
- // 간호 하드코딩 조회
- model.makeValue("/root/send/cdgrupid", "'402'");
- model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
- submit("TRMNW00001", false);
-
- // 부서(병동) 목록 조회
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'W';
- var rslt_ref = "/root/init/dept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- var dt = getCurrentDate();
-
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, dt);
- //model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(cmb_deptcd.attribute("ref"), '');
- model.setValue(cmb_goodcd.attribute("ref"), '');
- //submit("TRMNW11001", false); // 전체 부서조회
- addComboItem("cmb_deptcd", "전 체", "", "above");
- model.setValue(ipt_fromdd.attribute("ref"), getDateAddc(getCurrentDate(),-1));
- //model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
- ipt_fromdd.refresh();
-
- // grd_goodinfo.mergeCol(1) = false;
- // grd_goodinfo.mergeCol(2) = false;
- // grd_goodinfo.mergeCol(3) = false;
- // //grd_goodinfo.mergeCol(4) = false;
- // grd_goodinfo.mergeCol(5) = false;
- // grd_goodinfo.mergeCol(6) = false;
- // grd_goodinfo.mergeCol(7) = false;
- // grd_goodinfo.mergeCol(8) = false;
- // grd_goodinfo.mergeCol(9) = false;
-
- /*
- if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
-
- } else { // IV팀이 아니면 비활성화
-
- if(getUserInfo("userid") == "ENR") {
- model.setValue(cmb_deptcd.attribute("ref"), "");
- cmb_deptcd.refresh();
- } else {
-
- model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- cmb_deptcd.refresh();
- }
- }
- */
- fSearch() ;
- ]]>
- </script>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
- <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
- <submission id="TRMNW19301" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/goodinfo"/>
- <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fSearch() {
- // model.removenode("/root/send");
- // model.makeNode("/root/send");
-
- model.resetInstanceNode("/root/send");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- submit("TRMNW19301");
- /*
- var nodePath = grd_ivinfo.nodeset;
-
- for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
- if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
- }
- if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
- }
- if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
- }else{
- grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
- }
- }
- */
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="785" pageheight="780" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:765px; height:760px; ">
- <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; font-family:굴림; ">장비이용도 사용현황 통계</caption>
- <group id="grp_sea" style="left:0px; top:20px; width:750px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:750px; height:40px; "/>
- <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:630px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:205px; top:11px; width:90px; height:17px; font-family:굴림; ">업무일자 :</caption>
- <line id="line2" class="line_4" style="x1:620px; y1:10px; x2:620px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:295px; top:10px; width:95px; height:19px; font-family:굴림; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch() ;
- ]]>
- </script>
- </input>
- <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:11px; width:115px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/dept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:410px; top:11px; width:73px; height:17px; font-family:굴림; ">자산명 :</caption>
- <button id="button2" class="btn1_letter2" navindex="8" style="left:688px; top:11px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "기자재사용현황통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_goodinfo.saveExcel(fileName, "sheetname;colhiddenextend:true;exportfalsecols:1,2,8,9,10;col_3:label;col_16:label;col_18:label;col_19:label;");
- ]]>
- </script>
- </button>
- <select1 id="cmb_goodcd" ref="/root/main/cond/goodcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:485px; top:11px; width:115px; height:19px; font-family:굴림; ">
- <choices>
- <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='402']">
- <label ref="cdnm"/>
- <value ref="supcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:750px; y2:65px; "/>
- <datagrid id="grd_goodinfo" nodeset="/root/main/goodinfo/goodlist" class="datagrid2" caption="병동^wardcd^lrgcd^자산명^규격^보유재고^사용^미사용^사용률(%)" colsep="^" colwidth="162, 1, 0, 200, 90, 65, 65, 65, 65" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:750px; height:670px; ">
- <col ref="wardnm" style="text-align:center; "/>
- <col ref="wardcd" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="goodnm" style="text-align:center; "/>
- <col ref="goodspec" style="text-align:center; "/>
- <col ref="tot" style="text-align:center; "/>
- <col ref="using" style="text-align:center; "/>
- <col ref="remain" style="text-align:center; "/>
- <col ref="percent" type="output" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodinfo.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|