| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 |
- <?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>
- <csrbipumlist>
- <chkyn/>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <chngsafestocqty/>
- <goodmngtflag/>
- <cmt/>
- <certyn/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- </csrbipumlist>
- <duplnode>
- <csrbipumlist/>
- </duplnode>
- <goodlist/>
- <lrglist/>
- <mdllist/>
- <csrreqdeptlist/>
- <setlist>
- <chkyn/>
- <csrreqdeptcd/>
- <deptnm/>
- <deptcd/>
- <instcd/>
- <setcd/>
- <setnm/>
- <cmt/>
- </setlist>
- <setdetllist>
- <chkyn/>
- <csrreqdeptcd/>
- </setdetllist>
- </main>
- <send>
- <goodcd/>
- <csrreqdeptcd/>
- <instcd/>
- <searchflag>1</searchflag>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd2/>
- <goodnm/>
- <goodflag>T</goodflag>
- <lrgcd/>
- <mdlcd/>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd/>
- </send>
- <init>
- <lrgcd/>
- <mdlcd/>
- </init>
- <hidden>
- <a/>
- <lrgcd/>
- <mdlcd/>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/csrreqdeptlist"/>
- <submission id="TRRSD00191" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main"/>
- <submission id="TRRSD06021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
- <submission id="TRRSC07011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
- <submission id="TRRSC05111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lrglist"/>
- <submission id="TRRSC05112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mdllist"/>
- <submission id="TRRSS00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/setlist"/>
- <submission id="TRRSS00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetllist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- //misfGridInit(grd_goodslist);
- misfComboComCdListMulti("Z0007", "cmb_instcd");
-
- model.removeNodeset(grd_setlist.nodeset);
- model.removeNodeset(grd_setdetllist.nodeset);
-
- //misfGridComboComCdList("R0025", grd_goodslist, "goodflag");
- var deptcd = model.property("deptcd");
- var deptnm = model.property("deptnm");
-
- if(deptcd == "") {
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
-
- } else {
- model.setValue(ipt_deptcd.attribute("ref"), deptcd);
- model.setValue(ipt_deptnm.attribute("ref"), deptnm);
- }
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
-
- cmb_instcd.refresh();
-
- model.makeValue("/root/main/cond/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.makeValue("/root/main/cond/useyn", "Y");
-
- submit("TRRSS01211");
-
- addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
-
- fSerachData();
- }
-
-
- function fSerachData()
- {
-
- var searchData = model.getValue("/root/send/searchflag");
-
- if(searchData == "1") {
- submit("TRRSS00401");
- } else {
- model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
- model.makeValue("/root/send/reqdata/deptcd", ipt_deptcd.value);
- model.makeValue("/root/send/reqdata/rgstflag", "4");
- submit("TRRSD06021");
- }
-
-
-
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="870" pageheight="650" guideline="1,963;2,771;" style="font-family:굴림체; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:850px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구물품등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:850px; height:603px; ">
- <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" visibility="hidden" caption="^부서코드^부서명^물품코드^물품명^규격^모델^단위^기준량^변경
기준량^사유^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^재고
수량^한계
수량" colsep="^" colwidth="25, 0, 90, 100, 150, 124, 136, 40, 50, 67, 137, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 45, 40" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:115px; width:843px; height:485px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
- <col ref="deptnm" style="text-align:center; "/>
- <col class="input_essential" ref="goodcd" _key="true"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="deliveunit"/>
- <col ref="safestocqty" style="background-color:#e3e3e3; "/>
- <col ref="chngsafestocqty" visibility="hidden" style="background-color:#e3e3e3; "/>
- <col ref="cmt" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="purcunit" visibility="hidden"/>
- <col ref="minexch" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="lrgnm" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="mdlnm" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="smlnm" visibility="hidden"/>
- <col ref="realqty"/>
- <col ref="reqlmtqty"/>
- </datagrid>
- <group id="group2" style="left:5px; top:10px; width:843px; height:75px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:843px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:15px; top:10px; width:89px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:430px; top:8px; width:165px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <line id="line2" class="line_4" style="x1:770px; y1:22px; x2:770px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:780px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSerachData();
- ]]>
- </script>
- </button>
- <caption id="caption9" class="search_name" style="left:340px; top:10px; width:89px; height:17px; ">기관코드 :</caption>
- <select1 id="rdo_searchflag" ref="/root/send/searchflag" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:10px; width:175px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>상용SET</label>
- <value>1</value>
- </item>
- <item>
- <label>비품</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var searchFlag = model.getValue("/root/send/searchflag");
-
- if(searchFlag == "1") {
- grp_setsearch.visible = true;
- grp_bipum.visible = false;
- grd_setlist.visible = true;
- grd_setlist.visible = true;
- grd_csrbipumlist.visible = false;
-
- } else {
- grp_setsearch.visible = false;
- grp_bipum.visible = true;
-
- grd_setlist.visible = false;
- grd_setdetllist.visible = false;
- grd_csrbipumlist.visible = true;
-
- }
- fSerachData();
-
- ]]>
- </script>
- </select1>
- <group id="grp_setsearch" visibility="hidden" style="left:0px; top:35px; width:770px; height:30px; background-color:transparent; border-color:transparent; ">
- <caption id="caption10" class="search_name" style="left:15px; top:6px; width:88px; height:17px; ">부 서 명 :</caption>
- <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_search" style="left:215px; top:5px; width:172px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_default" style="left:102px; top:5px; width:85px; height:19px; "/>
- <button id="btn_reqdept" class="icon_search" style="left:193px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRSS01203");
-
- model.setValue(ipt_deptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_deptnm.attribute("ref"), model.property("deptnm"));
-
- ipt_deptcd.refresh();
- ipt_deptnm.refresh();
- btn_search.dispatch("DOMActivate");
-
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:680px; top:5px; width:25px; height:19px; "/>
- <group id="grp_bipum" style="left:0px; top:31px; width:765px; height:35px; background-color:transparent; ">
- <caption id="caption2" class="search_name" style="left:195px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
- <button id="button7" class="icon_search" style="left:358px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPRSS01203");
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
- model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
-
- ipt_reqdeptcd.refresh();
- ipt_reqdeptnm.refresh();
- ipt_csrreqdeptcd2.refresh();
-
- //grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
- //getCsrDeptList();
-
- cmb_csrreqdeptcd.value = model.getValue(ipt_csrreqdeptcd2.attribute("ref"));
- //btn_search.dispatch("DOMActivate");
-
-
-
-
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:15px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:104px; 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[
- model.setValue(ipt_reqdeptcd.attribute("ref"), "");
- model.setValue(ipt_reqdeptnm.attribute("ref"), "");
-
- ipt_reqdeptcd.refresh();
- ipt_reqdeptnm.refresh();
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/deptnm" class="input_search" style="left:380px; top:10px; width:160px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:285px; top:9px; width:70px; height:19px; "/>
- </group>
- </group>
- <caption id="caption12" class="tit_2" style="left:5px; top:94px; width:121px; height:14px; ">비픔현황조회</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:110px; x2:848px; y2:110px; "/>
- <button id="button4" class="btn2_letter4" style="left:783px; top:90px; width:64px; height:19px; ">
- <caption>선택적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var search = rdo_searchflag.value;
-
- var iParam;
- var nodelist;
-
- if(search == "1") {
- iParam = model.getValue(grd_setdetllist.nodeset);
- nodelist = instance1.selectNodes(grd_setdetllist.nodeset + "[chkyn='Y']");
- } else if(search == "2") {
- iParam = model.getValue(grd_csrbipumlist.nodeset);
- nodelist = instance1.selectNodes(grd_csrbipumlist.nodeset + "[chkyn='Y']");
- }
-
- var rCVS = getNodeListCSV(nodelist);
-
- if ( checkOpener() ) {
- opener.javascript.setParameter("SMRSD06003_", rCVS);
-
- } else {
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- window.close();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_setlist" nodeset="/root/main/setlist" caption="^부서구분^부서명^deptcd^instcd^Set코드^Set 명^비고" colsep="^" colwidth="20, 69, 100, 0, 0, 69, 331, 213" dataheight="35" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:5px; top:115px; width:840px; height:215px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="csrreqdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="deptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="instcd"/>
- <col ref="setcd" type="input"/>
- <col ref="setnm" type="input"/>
- <col ref="cmt" type="input"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_setlist.isCell(event.target) && grd_setlist.mouseRow >= grd_setlist.fixedrows){
-
- model.makeValue("/root/send/reqdata/instcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("instcd")));
- model.makeValue("/root/send/reqdata/setcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("setcd")));
- model.makeValue("/root/send/reqdata/deptcd", grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("deptcd")));
-
- submit("TRRSS00402");
-
- var chkyn;
- if(grd_setlist.col == grd_setlist.colRef("chkyn") ) {
- chkyn = grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("chkyn"));
-
- if(chkyn == "Y") {
- for(var i = grd_setdetllist.fixedRows; i < grd_setdetllist.rows; i++) {
- grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("chkyn")) = "Y";
- }
- } else {
- for(var i = grd_setdetllist.fixedRows; i < grd_setdetllist.rows; i++) {
- grd_setdetllist.valueMatrix(i, grd_setdetllist.colRef("chkyn")) = "N";
- }
- }
- } else {
-
-
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_setdetllist" nodeset="/root/main/setdetllist" caption="^setcd^부서구분^instcd^부서코드^부서명^물품구분^물품코드^물품명^규격^모델^멸균구분^저장일시^저장자" colsep="^" colwidth="20, 0, 62, 0, 0, 100, 70, 100, 130, 100, 100, 55, 120, 70" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:355px; width:840px; height:245px; ">
- <col checkvalue="Y,N" disabled="true" ref="chkyn" type="checkbox"/>
- <col ref="setcd"/>
- <col ref="csrreqdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/main/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="reqflag" type="combo">
- <choices>
- <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>
- </col>
- <col ref="goodcd" type="inputbutton"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col disabled="true" ref="dinfflag" type="combo">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fSetGridData();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|