123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?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="">
- <init>
- </init>
- <send>
- <instcd/>
- <yearfrdd/>
- <yeartodd/>
- <yeardd/>
- <delaystatus/>
- </send>
- <main>
- <acntcddeptcdyearinoutlist/>
- </main>
- <list>
- <acntcdlist/>
- </list>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSG03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntcddeptcdyearinoutlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/purccommonweb/js/PURC.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.resetInstanceNode("/root/send");
-
- misfComboComCdListMulti("Z0007","cmb_instcd" );
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- misfGridInit(grd_acntcddeptcdyearinoutlist);
- misfMsterDetailSet(grd_acntcddeptcdyearinoutlist,null, "TRRSG03701" ,"N");
-
- misfGridInit(grd_acntcdlist);
-
- // grd_acntcddeptcdyearinoutlist.subtotalPosition = "after";
-
- model.refresh();
- }
- //필수항목 체크하는 메소드
- function fCheckRetrieveData()
- {
- if(!isRequiredControls("cmb_instcd") )return false; // 기관코드 , commonweb/js/tfHelper.js
-
- if(!isRequiredControls("cmb_yeardd") )return false; // 입고시작일자
-
- //if(!isRequiredControls("ipt_wintodd") )return false; // 입고종료일자
- //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">계정별/부서별 연간 불출현황</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:94px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:100px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:340px; top:11px; width:87px; height:17px; ">연간통계 :</caption>
- <caption id="caption1" style="left:529px; top:12px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="input1" ref="/root/send/yearfrdd" class="input_s_essential" inputtype="date" style="left:425px; top:8; width:100px; height:19px; "/>
- <input id="input3" ref="/root/send/yeartodd" class="input_s_essential" inputtype="date" style="left:547px; top:8; width:100px; height:19px; "/>
- <caption id="caption2" style="left:180px; top:35px; width:111px; height:20px; ">년 03월 ~ 익년 02월</caption>
- <caption id="cap_yeardd" class="search_name" style="left:15px; top:35; width:87px; height:17px; ">연간통계 :</caption>
- <select1 id="cmb_yeardd" ref="/root/send/yeardd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:100px; top:34px; width:78px; height:19px; ">
- <choices>
- <item>
- <label>2001</label>
- <value>2001</value>
- </item>
- <item>
- <label>2002</label>
- <value>2002</value>
- </item>
- <item>
- <label>2003</label>
- <value>2003</value>
- </item>
- <item>
- <label>2004</label>
- <value>2004</value>
- </item>
- <item>
- <label>2005</label>
- <value>2005</value>
- </item>
- <item>
- <label>2006</label>
- <value>2006</value>
- </item>
- <item>
- <label>2007</label>
- <value>2007</value>
- </item>
- <item>
- <label>2008</label>
- <value>2008</value>
- </item>
- <item>
- <label>2009</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010</label>
- <value>2010</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:340px; top:35; width:94px; height:17px; ">휴면상태 :</caption>
- <select1 id="radio2" ref="/root/send/delaystatus" class="radio_search" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:425px; top:35px; width:207px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>연간</label>
- <value>A</value>
- </item>
- <item>
- <label>분기별</label>
- <value>B</value>
- </item>
- <item>
- <label>자재별</label>
- <value>C</value>
- </item>
- </choices>
- </select1>
- <button id="button2" class="btn1_letter2" navindex="4" style="left:1124px; top:17px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridInit(grd_acntcddeptcdyearinoutlist);
- misfGridInit(grd_acntcdlist);
-
- if(fCheckRetrieveData(false) == false)return;
- misfMsterDetailRetrieve();
- // grd_acntcddeptcdyearinoutlist.subtotal("clear" , 0 , 0);
- // grd_acntcddeptcdyearinoutlist.subtotal("sum", 1, 6, "format:#,###.0; ", "background-color:#ffff99; font-weight:bold; ", 2, "계정별Total");
-
- var gridrow = grd_acntcddeptcdyearinoutlist.rows; //그리드 전체 행수
- // alert(gridrow);
- var tempdeptnm1 = 0; //내과
- var tempdeptnm2 = 0; //내과초음파
- var tempdeptnm3 = 0; //류마티스클리닉
- var tempdeptnm4 = 0; //심장센터
- var tempdeptnm5 = 0; //신경과
-
- var purcacntnm = null; //계정명
-
- var j = 1 ;
- for ( i = 1 ; i<= gridrow ; i++ ) {
- temppurcacntnm = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/purcacntnm"); //계정명을 그리드 행에 따라 가져옴
-
- tempdeptnm = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/deptnm"); //부서명을 그리드 행에 따라 가져옴
- //부서별로 불출갯수를 가져옴(계정명에 따라서)
- if( tempdeptnm == "내과") {
- tempdeptnm1 = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/delivedeptqty");
- }
- if( tempdeptnm == "04층동병동") {
- tempdeptnm2 = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/delivedeptqty");
- }
- if( tempdeptnm == "간호부 사무실") {
- tempdeptnm3 = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/delivedeptqty");
- }
- if( tempdeptnm == "의료정보팀") {
- tempdeptnm4 = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/delivedeptqty");
- }
- if( tempdeptnm == "신경과") {
- tempdeptnm5 = model.getValue("/root/main/acntcddeptcdyearinoutlist["+i+"]/delivedeptqty");
- }
-
- //계정명이 동일 할때는 위에 해당하는 부서별로 불출갯수를 찾아서 변수에 저장해 놓는다.
- if(purcacntnm != temppurcacntnm) { //계정명이 서로 다를 경우(계정명으로 group by 하는 의미
- purcacntnm = temppurcacntnm;
- grd_acntcdlist.addRow(false); //그리드 열추가
- model.setValue("/root/list/acntcdlist["+j+"]/temppurcacntnm",purcacntnm);
- model.setValue("/root/list/acntcdlist["+j+"]/tempdeptnm1",tempdeptnm1);
- model.setValue("/root/list/acntcdlist["+j+"]/tempdeptnm2",tempdeptnm2);
- model.setValue("/root/list/acntcdlist["+j+"]/tempdeptnm3",tempdeptnm3);
- model.setValue("/root/list/acntcdlist["+j+"]/tempdeptnm4",tempdeptnm4);
- model.setValue("/root/list/acntcdlist["+j+"]/tempdeptnm5",tempdeptnm5);
-
- j = j+1;
-
- tempdeptnm1 = 0;
- tempdeptnm2 = 0;
- tempdeptnm3 = 0;
- tempdeptnm4 = 0;
- tempdeptnm5 = 0;
- //계정명이 유일 할때 마다 그동안에 찾아 놓았던 부서의 불풀갯수를 그리드에 뿌려준다.
- }
- }
-
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- <line id="line5" class="line_4" style="x1:1109px; y1:9px; x2:1109px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <button id="button5" class="btn2_letter3" style="left:1080px; top:408px; width:53px; height:19px; ">
- <caption>줄추가</caption>
- </button>
- <button id="button6" class="btn2_letter3" style="left:1135px; top:408px; width:53px; height:19px; ">
- <caption>줄삭제</caption>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- <datagrid id="grd_acntcdlist" nodeset="/root/list/acntcdlist" caption="구분^내과^내과초음파^류마티스클리닉^심장센터^신경과" colsep="^" colwidth="309, 170, 170, 170, 170, 170" extendlastcol="scroll" mergecellsfixedrows="bycol" rowheader="seq" rowheight="16" rowsep="|" style="left:0px; top:100px; width:1195px; height:634px; ">
- <col ref="temppurcacntnm"/>
- <col ref="tempdeptnm1" format="#,###" style="text-align:right; "/>
- <col ref="tempdeptnm2" style="text-align:right; "/>
- <col ref="tempdeptnm3" style="text-align:right; "/>
- <col ref="tempdeptnm4" style="text-align:right; "/>
- <col ref="tempdeptnm5" style="text-align:right; "/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:5px; top:80px; width:159px; height:13px; ">계정별/부서별 불출목록</caption>
- <datagrid id="grd_acntcddeptcdyearinoutlist" nodeset="/root/main/acntcddeptcdyearinoutlist" visibility="hidden" caption="계정코드^계정명^부서코드^부서명^출고날짜^불출갯수^불출금액" colsep="^" colwidth="101, 156, 102, 162, 100, 107, 100" rowheader="seq" rowheight="16" rowsep="|" style="left:110px; top:365px; width:880px; height:345px; ">
- <col ref="purcacntcd"/>
- <col ref="purcacntnm"/>
- <col ref="windeptcd"/>
- <col ref="deptnm"/>
- <col ref="ym"/>
- <col ref="delivedeptqty"/>
- <col ref="outamt"/>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="button16" class="btn4_letter2" visibility="hidden" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- </button>
- <button id="button18" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|