123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441 |
- <?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>부서별CSR물품관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <csrdeptlist/>
- <csrreqdeptnm>
- <csrreqdeptnm/>
- </csrreqdeptnm>
- <csrinfo>
- <csrbipumlist>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <chngsafestocqty/>
- <goodmngtflag/>
- <cmt/>
- <certyn/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- </csrbipumlist>
- <csrsomolist>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <chngsafestocqty/>
- <goodmngtflag/>
- <cmt/>
- <certyn/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- </csrsomolist>
- <csrdinflist>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <chngsafestocqty/>
- <goodmngtflag/>
- <cmt/>
- <certyn/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- </csrdinflist>
- </csrinfo>
- </main>
- <send>
- <deptlist>
- <goodflag/>
- <deptcd/>
- <instcd/>
- <goodcd/>
- </deptlist>
- <goodbaseqtylist/>
- <goodcd/>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd2/>
- <instcd/>
- <goodflag>TM</goodflag>
- <csrreqdeptcd/>
- <goodnm/>
- <goodflag2/>
- <dept/>
- <reqflag/>
- </send>
- <init>
- <mlist/>
- </init>
- <hidden/>
- <temp/>
- <copynode/>
- </root>
- </instance>
- <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" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/deptlist"/>
- <submission id="TRRSS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/main/goodbaseqtylist"/>
- <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrreqdeptlist"/>
- <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRRSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrinfo"/>
- <submission id="TXRSD00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRRSD06021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
-
- var curRow = -1;
- function fInitialize()
- {
- // model.removeNodeset("/root/main/deptlist");
- // model.removeNodeset("/root/main/goodbaseqtylist");
- //model.resetInstanceNode("/root/send");
-
- //그리드를 초기화 한다.
- misfGridInit(grd_deptlist);
- misfGridInit(grd_csrbipumlist);
-
- misfComboComCdListMulti("Z0007", "cmb_instcd");
-
- zbcfGetCodeList( new Array (
- "R0039" //불출단위
-
- )
- , new Array ( "/root/init/mlist" //청구방법
-
- )
- );
-
- //기관코드, 물품구분 공통 코드를 가져온다.
- model.makeValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
-
- submit("TRRSS01211");
-
- model.refresh();
- // model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- // submit("TRRSD06021");
-
- //cmb_csrreqdeptcd.select(0);
- // btn_search.dispatch("DOMActivate");
-
- }
-
- function fSearch2() {
- // model.copyNode("/root/main/cond", "/root/main/csrreqdeptlist[" + grd_csrreqdeptlist.row + "]"); //부서구분이 가지고 있는 instance를 복사(아래 상세 화면에 보여줌.)
-
-
- model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value); //청구부서구분코드
- model.makeValue("/root/send/reqdata/useyn", model.getValue("/root/send/useyn"));
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
-
- submit("TRRSS01212");
-
- }
-
- function fSearch()
- {
- curRow = grd_deptlist.row;
- var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
- var instcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
-
-
- model.setValue(ipt_deptcd.attribute("ref"), deptcd);
- ipt_deptcd.refresh();
-
- model.makeValue("/root/send/reqdata/deptcd", deptcd);
- model.makeValue("/root/send/reqdata/instcd", instcd);
- model.makeValue("/root/send/reqdata/reqflag", model.getValue(rdo_reqflag.attribute("ref")));
- model.makeValue("/root/send/reqdata/reqflag2", "2");
-
- submit("TRRSD06021");
-
- }
-
- ]]>
- </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:880px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:141px; height:14px; ">부서별 CSR물품조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:880px; height:727px; ">
- <input id="ipt_deptcd" ref="/root/send/dept" visibility="hidden" style="left:325px; top:76px; width:100px; height:19px; "/>
- <input id="ipt_goodflag" ref="/root/send/goodflag2" visibility="hidden" style="left:90px; top:75px; width:100px; height:19px; "/>
- <input id="ipt+csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" visibility="hidden" style="left:220px; top:75px; width:100px; height:19px; "/>
- <group id="grp_sea" style="left:0px; top:5px; width:880px; height:62px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:880px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:9px; width:115px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:240px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:329px; top:9px; width:76px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_4" style="x1:795px; y1:4px; x2:795px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:810px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(isRequiredControls("cmb_csrreqdeptcd")) {
-
- fSearch2();
- }
-
- fSearch();
-
-
- //fSerachData();
- ]]>
- </script>
- </button>
- <button id="btn_reqdept" class="icon_search" style="left:581px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("52", ipt_reqdeptcd, "", "deptcd,deptnm,csrreqdeptcd2");
- model.refresh();
- // grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
-
- // getCsrDeptList();
-
- cmb_csrreqdeptcd.value = model.getValue("/root/send/csrreqdeptcd2");
- //btn_search.dispatch("DOMActivate");
-
- if(cmb_csrreqdeptcd.value != "") {
- if(isRequiredControls("cmb_csrreqdeptcd")) {
- // grd_csrreqdeptnm.valueMatrix(1, grd_csrreqdeptnm.colRef("csrreqdeptnm")) = cmb_csrreqdeptcd.label;
- fSearch2();
-
- for(var i = 1; i <= grd_deptlist.rows; i++) {
-
- if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
- grd_deptlist.row = i;
- fSearch();
- break;
- }
- }
- }
- }
-
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:420px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
- <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" style="left:603px; top:9px; width:162px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:510px; top:9px; width:70px; height:19px; "/>
- <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:218px; top:34px; width:147px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
- "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
- "", "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodcd.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <button id="btn_searchgoodcd" class="icon_search" style="left:196px; top:35px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,ab,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_goodcd" class="search_name" style="left:15px; top:35px; width:91px; height:17px; ">물품코드 :</caption>
- <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_fix" maxlength="10" style="left:105px; top:34px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
- "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
- "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodnm.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:104px; width:157px; height:13px; ">부서</caption>
- <line id="line1" class="line_1" style="x1:205px; y1:119px; x2:880px; y2:119px; "/>
- <caption id="caption4" class="tit_2" style="left:209px; top:104px; width:91px; height:13px; ">CSR 비품</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:119px; x2:200px; y2:119px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/main/csrdeptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="154, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:124px; width:200px; height:561px; ">
- <col disabled="true" ref="deptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_deptlist.isCell(event.target) && grd_deptlist.mouseRow >= grd_deptlist.fixedrows){
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")));
- model.setValue(ipt_reqdeptnm.attribute("ref"), grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptnm")));
-
- fSearch();
-
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="부서명^물품코드^물품명^규격^모델^단위^안전
재고" colsep="^" colwidth="100, 70, 150, 113, 113, 40, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:205px; top:124px; width:675px; height:561px; ">
- <col ref="deptnm"/>
- <col class="input_essential" ref="goodcd" _key="true"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="deliveunit"/>
- <col ref="safestocqty" format="(-)#,###.##" style="text-align:right; "/>
- </datagrid>
- <select1 id="rdo_reqflag" ref="/root/send/reqflag" overflow="visible" appearance="full" cellspacing="\" cols="5" style="left:300px; top:102px; width:275px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>비품</label>
- <value>1</value>
- </item>
- <item>
- <label>소모품</label>
- <value>2</value>
- </item>
- <item>
- <label>린넨</label>
- <value>4</value>
- </item>
- <item>
- <label>멸균품목</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- </group>
- </xhtml:body>
- </xhtml:html>
|