123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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="">
- <main>
- <deptlist/>
- </main>
- <send>
- <instcd/>
- <stocyy/>
- <deptcd/>
- <goodcd/>
- <goodnm/>
- <shwflag/>
- <goodflag/>
- </send>
- <init>
- <shwflag>
- <label>부 서 별</label>
- <value>1</value>
- <label>품 목 별</label>
- <value>2</value>
- </shwflag>
- <radiodept>
- <label>외래</label>
- <value>1</value>
- <label>병동</label>
- <value>2</value>
- <label>OR</label>
- <value>3</value>
- <label>ER</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- <label>전체</label>
- <value/>
- </radiodept>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSG06201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/deptlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <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/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_deptlist);
-
- misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드
- model.refresh();
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= T) => (goodflag= TM)
- model.setValue(ipt_goodflag.attribute("ref"), "TM");
-
- var sBaseDate = getCurrentDate();
-
- sBaseDate = sBaseDate.substr(0, 4);
-
- model.setValue("/root/send/stocyy", sBaseDate);
-
- rdo_shwflag.select(0);
-
- fGridSetting();
- misfMsterDetailSet(grd_deptlist,null, "TRRSG06201" ,"Y");
-
- btn_search.dispatch("DOMActivate");
- model.refresh();
- }
-
- // function fsearch()
- // {
- // //misfMsterDetailRetrieve();
- // }
-
- function fGridSetting()
- {
- for(licol = 0; licol < grd_deptlist.cols ; licol++)
- {
- if(grd_deptlist.colRef("deptnm") != licol) grd_deptlist.mergecol(licol) = false;
- }
- grd_deptlist.mergecells = "bycol";
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:231px; height:14px; ">CSR 물품 불출 집계(부서별 월대비)</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; 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:99px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:135px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_baseyy" ref="/root/send/stocyy" class="input_default" inputtype="date" format="yyyy" style="left:475px; top:8px; width:125px; height:19px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="cap_baseyy" class="search_name" style="left:390px; top:9px; width:90px; height:17px; ">조회년도 :</caption>
- <caption id="cap_eqmtcd" class="search_name" style="left:389px; top:36px; width:86px; height:17px; ">물품코드 :</caption>
- <input id="ipt_eqmtcd" ref="/root/send/goodcd" class="input_default" style="left:474px; top:35px; width:125px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_eqmtcd.value.length == 0)
- ipt_eqmtnm.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
- "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_eqmtcd.attribute("ref")) ,"","goodcd,goodnm",
- ipt_eqmtcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_eqmtcd" class="icon_search" style="left:604px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_eqmtcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_eqmtnm" ref="/root/send/goodnm" class="input_fix" appearance="input" style="left:624px; top:35px; width:399px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_eqmtnm.value.length == 0)
- ipt_eqmtcd.value = "";
- else
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
- "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(ipt_goodflag.attribute("ref")) + "," + model.getValue(ipt_eqmtnm.attribute("ref")) ,"","goodcd,goodnm",
- ipt_eqmtnm,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line30" class="line_4" style="x1:1110px; y1:8px; x2:1110px; y2:51px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- // model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:848px; top:10px; width:130px; height:19px; "/>
- <caption id="cap_shwflag" class="search_name" style="left:623px; top:10px; width:89px; height:17px; ">출력구분 :</caption>
- <select1 id="rdo_shwflag" ref="/root/send/shwflag" overflow="visible" appearance="full" cols="2" style="left:708px; top:10px; width:135px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/shwflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(rdo_shwflag.selectedIndex == 0)
- {
- grd_deptlist.colHidden(2) = false;
- grd_deptlist.colWidth(4) = 215;
-
- rdo_dept.disabled = false;
- ipt_eqmtcd.disabled = true;
- ipt_eqmtnm.disabled = true;
- ipt_eqmtcd.value = "";
- ipt_eqmtnm.value = "";
- btn_eqmtcd.disabled = true;
-
- btn_search.dispatch("DOMActivate");
- }
- else if(rdo_shwflag.selectedIndex == 1)
- {
- grd_deptlist.colHidden(2) = true;
-
- grd_deptlist.colWidth(4) = grd_deptlist.colWidth(4) + 67;
-
- rdo_dept.disabled = true;
- rdo_dept.value = "";
- ipt_eqmtcd.disabled = false;
- ipt_eqmtnm.disabled = false;
- btn_eqmtcd.disabled = false;
-
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="rdo_dept" ref="/root/send/deptcd" overflow="visible" appearance="full" cols="6" style="left:100px; top:35px; width:250px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/radiodept">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="cap_dept" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">불출부서 :</caption>
- </group>
- <caption id="caption13" class="tit_2" style="left:5px; top:80px; width:157px; height:13px; ">CSR 월말 불출 집계</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="부서코드^부서명^물품코드^품명^단위^기준량^1^2^3^4^5^6^7^8^9^10^11^12^합계" colsep="^" colwidth="74, 67, 75, 215, 50, 44, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:1195px; height:585px; ">
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="deliveunit"/>
- <col ref="baseqty" style="text-align:right; "/>
- <col ref="jan" format="#,###" style="text-align:right; "/>
- <col ref="feb" format="#,###" style="text-align:right; "/>
- <col ref="mar" format="#,###" style="text-align:right; "/>
- <col ref="apr" format="#,###" style="text-align:right; "/>
- <col ref="may" format="#,###" style="text-align:right; "/>
- <col ref="jun" format="#,###" style="text-align:right; "/>
- <col ref="jul" format="#,###" style="text-align:right; "/>
- <col ref="aug" format="#,###" style="text-align:right; "/>
- <col ref="sep" format="#,###" style="text-align:right; "/>
- <col ref="oct" format="#,###" style="text-align:right; "/>
- <col ref="nov" format="#,###" style="text-align:right; "/>
- <col ref="dec" format="#,###" style="text-align:right; "/>
- <col ref="total" format="#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
-
- </datagrid>
- <caption id="caption2" class="tit_2" visibility="hidden" style="left:230px; top:240px; width:542px; height:13px; ">그리드 컬럼 옮기지 마시요... colid를 하드코딩한 부분이 있오.</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|