| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?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>CSR 청구부서 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <goodreqcsrdeptlist>
- <deptcd/>
- <deptnm/>
- <instcd/>
- <goodflag/>
- </goodreqcsrdeptlist>
- <csrinfo>
- <csrbipumlist>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <delivedeptcd/>
- <delivedeptnm/>
- <deliveunit/>
- <destqty/>
- <goodsaveqty/>
- <scrubberqty/>
- <dinfqty/>
- <csrrealqty/>
- <lendqty/>
- <csrtotlqty/>
- <nodelive/>
- <cmt/>
- </csrbipumlist>
- <csrsomolist>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <delivedeptcd/>
- <delivedeptnm/>
- <deliveunit/>
- <destqty/>
- <goodsaveqty/>
- <scrubberqty/>
- <dinfqty/>
- <csrrealqty/>
- <lendqty/>
- <csrtotlqty/>
- <nodelive/>
- <cmt/>
- </csrsomolist>
- <csrdinflist>
- <instcd/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <delivedeptcd/>
- <delivedeptnm/>
- <deliveunit/>
- <destqty/>
- <goodsaveqty/>
- <scrubberqty/>
- <dinfqty/>
- <csrrealqty/>
- <lendqty/>
- <csrtotlqty/>
- <nodelive/>
- <cmt/>
- </csrdinflist>
- </csrinfo>
- <csrbipumlist/>
- </main>
- <send>
- <instcd/>
- <deptcd/>
- <deptnm/>
- <workdd/>
- <goodcd/>
- <goodnm/>
- <deliveflag>1</deliveflag>
- <reqpridflag/>
- <chkyn/>
- <csrreqdeptcd2/>
- <goodflag>T</goodflag>
- <deliveflag/>
- <reqpridflag/>
- <csrreqdeptcd/>
- <reqpridflag/>
- <eryn/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var rowStat = "C";
- var curRow = -1;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/reqlist");
- model.removeNodeset("/root/main/goodreqcsrdeptlist");
-
- misfComboComCdListMulti("Z0007", "cmb_instcd");
- //
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.setValue(ipt_workdd.attribute("ref"), getCurrentDate());
-
- cmb_instcd.refresh();
- ipt_workdd.refresh();
- fsearch();
- fsearch3();
-
- }
-
- function fsearch() {
- model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
-
- var daykind = "";
- if(getCurrentWeek() == "0" ||getCurrentWeek() == "6") {
- daykind = "2";
-
- } else {
- daykind = "1";
- }
-
- model.makeValue("/root/send/reqdata/daykind" , daykind);
-
- submit("TRRSD06013");
-
- var degr = model.getValue("/root/init/reqseqlist/reqseq");
-
- var node = instance1.selectSingleNode("/root/init/reqtimslist");
-
- addComboItem( "cmb_reqpridflag", "전체", "", "above");
-
- if(node != null) {
-
- cmb_reqpridflag.value = degr;
- model.setValue(chk_eryn.attribute("ref"), "1");
- chk_eryn.refresh();
- } else {
- model.setValue(chk_eryn.attribute("ref"), "Y");
- chk_eryn.refresh();
- chk_eryn.dispatch("xforms-value-changed");
- chk_eryn.disabled = true;
- }
-
- }
-
- function fsearch2() {
- // model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value);
- // model.makeValue("/root/send/reqdata/useyn", "Y");
-
- model.makeValue("/root/send/delivedd", model.getValue(ipt_workdd.attribute("ref")));
-
- submit("TRRSE00121");
- }
-
- function fsearch3() {
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/useyn" , "Y");
-
- submit("TRRSS01211");
-
- addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
- }
-
-
- function fsearch4() {
-
- model.makeValue("/root/send/reqdata/deptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")));
- model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_workdd.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodcd", model.getValue(ipt_goodcd.attribute("ref")));
- model.makeValue("/root/send/reqdata/goodnm", model.getValue(ipt_goodnm.attribute("ref")));
-
- submit("TRRSD11701");
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRRSD11701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
- <submission id="TXRSD11701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TRRSD06013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/reqtimslist"/>
- <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
- <submission id="TRRSE00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrdeptlist"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:106px; height:13px; ">CSR 수불내역</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <line id="line13" class="line_4" style="x1:1000px; y1:20px; x2:1000px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1015px; top:23px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("cmb_instcd")) return;
- fsearch2();
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:123px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:23px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "CSR마감기준시간", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_bipumlist.saveExcel(fileName, "청구현황List");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:1131px; top:23px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "CSR마감기준시간", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_csrtmlist.saveExcel(fileName, "청구현황List");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:16px; top:35px; width:88px; height:17px; ">부서구분 :</caption>
- <caption id="cap_goodcd" class="search_name" style="left:235px; top:40px; width:91px; height:17px; ">물품코드 :</caption>
- <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:448px; top:39px; width:170px; 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>
- <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_fix" style="left:328px; top:39px; width:95px; 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>
- <caption id="caption2" class="search_name" style="left:235px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="ipt_workdd" ref="/root/send/workdd" inputtype="date" style="left:328px; top:8px; width:100px; height:19px; "/>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:35px; width:123px; 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>
- <button id="btn_goodcd" class="icon_search" style="left:427px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SMRSS00130");
-
- model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
- model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
-
-
- ipt_goodcd.refresh();
- ipt_goodnm.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select id="chk_eryn" ref="/root/send/eryn" overflow="visible" appearance="full" cellspacing="70" cols="2" style="left:535px; top:10px; width:190px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>정규</label>
- <value>1</value>
- </item>
- <item>
- <label>응급</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var eryn = model.getValue(chk_eryn.attribute("ref"));
-
- var std = isSearchString(eryn, "1");
- var er = isSearchString(eryn, "2");
-
- if(std) {
- cmb_reqpridflag.disabled = false;
- model.setValue(cmb_reqpridflag.attribute("ref"), model.getValue("/root/init/reqseqlist/reqseq"));
- cmb_reqpridflag.refresh();
- } else {
- cmb_reqpridflag.disabled = true;
- cmb_reqpridflag.value = "-";
- }
-
- ]]>
- </script>
- </select>
- <caption id="caption5" class="search_name" style="left:450px; top:10px; width:86px; height:17px; ">청구주기 :</caption>
- <select1 id="cmb_reqpridflag" ref="/root/send/reqpridflag" appearance="minimal" style="left:580px; top:8px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqtimslist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:90px; width:100px; height:14px; ">부서구분</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:105px; x2:164px; y2:105px; "/>
- <input id="ipt_csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" class="input_search" visibility="hidden" style="left:640px; top:80px; width:172px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:525px; top:80px; width:100px; height:19px; "/>
- <caption id="caption4" class="tit_2" style="left:155px; top:90px; width:100px; height:13px; ">CSR 비품</caption>
- <datagrid id="grd_deptlist" nodeset="/root/main/goodreqcsrdeptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="96, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:110px; width:159px; height:630px; ">
- <col disabled="true" ref="delivedeptnm"/>
- <col ref="delivedeptcd" 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){
- fsearch4();
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_deptlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="instcd^물품코드^물품명^규격^불출부서코드^불출부서^단위^수리^파손^물품
보관^세척^멸균^CSR
실재고^대여량^안전
재고량^청구
수량^불출
수량^미불출^비고" colsep="^" colwidth="0, 85, 165, 80, 0, 100, 41, 40, 40, 40, 40, 40, 45, 45, 45, 45, 45, 45, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:169px; top:110px; width:1025px; height:630px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="delivedeptcd" visibility="hidden"/>
- <col ref="depthngnm"/>
- <col ref="requnit"/>
- <col ref="rpirqty" style="text-align:right; "/>
- <col ref="hdrncqty" style="text-align:right; "/>
- <col ref="rtnexchngqty3" style="text-align:right; "/>
- <col ref="rtnexchngqty1" style="text-align:right; "/>
- <col ref="rtnexchngqty2" style="text-align:right; "/>
- <col ref="curqty" style="text-align:right; "/>
- <col ref="dlvlendqty" style="text-align:right; "/>
- <col ref="safestocqty" style="text-align:right; "/>
- <col ref="reqqty" style="text-align:right; "/>
- <col ref="dlvexchngqty" style="text-align:right; "/>
- <col ref="nodlvrqty" style="text-align:right; "/>
- <col ref="cmt"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:169px; y1:105px; x2:1194px; y2:105px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|