123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548 |
- <?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>
- <setdetlinfo>
- <setdetllist>
- <chkyn/>
- <reqflag/>
- <goodcd/>
- <goodnm/>
- <dinfflag/>
- <dinfdivs/>
- <goodspec/>
- <goodmodel/>
- <safestocqty/>
- <stockqty/>
- <goodflag/>
- <deptcgflag/>
- </setdetllist>
- </setdetlinfo>
- <rscdgooddata>
- <chkyn/>
- <reqflag/>
- <goodcd/>
- <goodnm/>
- <dinfflag/>
- <dinfdivs/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <cmt/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- <realqty/>
- </rscdgooddata>
- </main>
- <cond>
- <srchflag>01</srchflag>
- <deptcd/>
- <deptnm/>
- <lrgcd/>
- <mdlcd/>
- <smlcd/>
- <reqflag/>
- <proddrugsetflag/>
- <goodflag>01</goodflag>
- <reqdata/>
- </cond>
- <send>
- <reqdata/>
- </send>
- <init/>
- <temp>
- <rscdgooddata/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.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" ev:event="xforms-ready">
- <![CDATA[
-
- model.removeNodeset("/root/main/setdetlinfo/setdetllist");
- var deptcd = opener.javascript.getParameter("deptcd");
- var deptnm = opener.javascript.getParameter("deptnm");
- if(deptcd !=""){
- model.setValue("/root/cond/deptcd",deptcd);
- model.setValue("/root/cond/deptnm",deptnm);
- }else{
- model.setValue("/root/cond/deptcd",getUserInfo("dutplcecd"));
- }
- fSearch();
- submit("TRMNG00101"); //대분류 조회
- addComboItem( "cmb_lrgcd", "전체", "", "above");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRMNG00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/setdetlinfo"/>
- <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lrglist"/>
- <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/mdllist"/>
- <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init/smllist"/>
- <submission id="TRMNG00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscdgooddata"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 부서,CSR 청구물품정보 조회
- function fSearch(){
-
- var srchflag = model.getValue("/root/cond/srchflag");
- if(srchflag =="01"){
- grd_setdetllist.nodeset="/root/main/setdetlinfo/setdetllist";
- model.makeValue("/root/send/reqdata/deptcd" ,model.getValue("/root/cond/deptcd"));
- model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/lrgcd"));
- model.makeValue("/root/send/reqdata/mdlcd" ,model.getValue("/root/cond/mdlcd"));
- model.makeValue("/root/send/reqdata/smlcd" ,model.getValue("/root/cond/smlcd"));
- model.makeValue("/root/send/reqdata/reqflag" ,model.getValue("/root/cond/reqflag"));
- model.makeValue("/root/send/reqdata/proddrugsetflag",model.getValue("/root/cond/proddrugsetflag"));
- model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/goodflag"));
- model.makeValue("/root/send/reqdata/reqdata" ,model.getValue("/root/cond/reqdata"));
-
- if(submit("TRMNG00802")){
- model.removeNodeset("/root/send/reqdata");
- for(var i = 0 ; i < grd_setdetllist.rows ; i++){
- if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="2"){
-
- setRowStyle("grd_setdetllist","1","2","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="3"){
- setRowStyle("grd_setdetllist","2","3","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("reqflag")) =="4"){
- setRowStyle("grd_setdetllist","3","4","reqflag","equal");
- }else if(grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("deptcgflag")) =="D"){
- setRowStyle("grd_setdetllist","5","D","deptcgflag","equal");
- }
- }
- }
- }else{
- grd_setdetllist.nodeset="/root/temp/rscdgooddata";
- model.makeValue("/root/send/reqdata/instcd" ,getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/lrgcd"));
- model.makeValue("/root/send/reqdata/mdlcd" ,model.getValue("/root/cond/mdlcd"));
- model.makeValue("/root/send/reqdata/smlcd" ,model.getValue("/root/cond/smlcd"));
- model.makeValue("/root/send/reqdata/reqflag" ,model.getValue("/root/cond/reqflag"));
- model.makeValue("/root/send/reqdata/proddrugsetflag",model.getValue("/root/cond/proddrugsetflag"));
- model.makeValue("/root/send/reqdata/goodflag", "TM");
- model.makeValue("/root/send/reqdata/initflag", "T");
- model.makeValue("/root/send/reqdata/reqdata" ,model.getValue("/root/cond/reqdata"));
- model.makeValue("/root/send/reqdata/rgstflag", "4");
- model.makeValue("/root/send/reqdata/useyn", "Y");
- model.makeValue("/root/send/reqdata/cdnmflag" ,model.getValue("/root/cond/goodflag"));
- if(submit("TRMNG00201")){
-
-
- }
- }
-
- }
- grd_setdetllist.refresh();
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="560">
- <datagrid id="grd_setdetllist" nodeset="/root/main/setdetlinfo/setdetllist" caption="선택^물품구분^물품코드^물품명^멸균구분^멸균상세^규격^모델^비품수량^재고량^기관코드^deptcgflag^deliveunit^dinfdivs^sortno^netflag" colsep="^" colwidth="33, 63, 73, 244, 66, 83, 92, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:181px; width:655px; height:347px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col ref="reqflag" type="combo" style="text-align:center; ">
- <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" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="safestocqty" visibility="hidden"/>
- <col ref="stockqty" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="deptcgflag" visibility="hidden"/>
- <col ref="deliveunit" visibility="hidden"/>
- <col ref="dinfdivs" visibility="hidden"/>
- <col ref="sortno" visibility="hidden"/>
- <col ref="netflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_setdetllist.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_goodlist" nodeset="/root/main/rscdgooddata" class="grd_goodlist" visibility="hidden" caption="선택^물품구분^물품코드^물품명^멸균구분^멸균상세^규격^모델^단위^기준량^사유^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^realqty^netflag" colsep="^" colwidth="34, 61, 83, 271, 61, 100, 155, 155, 40, 70, 169, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:181px; width:655px; height:347px; ">
- <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
- <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
- <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 class="input_essential" ref="goodcd" _key="true" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; "/>
- <col disabled="true" ref="dinfflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>비멸균</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>고압증기멸균</label>
- <value>1</value>
- </item>
- <item>
- <label>가스멸균</label>
- <value>2</value>
- </item>
- <item>
- <label>건열멸균</label>
- <value>3</value>
- </item>
- <item>
- <label>플라즈마멸균</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel"/>
- <col ref="deliveunit"/>
- <col ref="safestocqty" 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" visibility="hidden"/>
- <col ref="netflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
-
- grd_goodlist.gridToInstance();
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">청구물품등록</caption>
- <line id="line2" class="line_1" style="x1:4px; y1:176px; x2:659px; y2:176px; "/>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:20px; width:655px; height:130px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="tit_2" style="left:4px; top:161px; width:165px; height:13px; ">청구물품정보</caption>
- <line id="line13" class="line_4" style="x1:581px; y1:90px; x2:581px; y2:112px; "/>
- <button id="bnt_srch" class="btn1_letter2" style="left:590px; top:90px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_smlcd" ref="/root/cond/smlcd" appearance="minimal" style="left:460px; top:49px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/smllist">
- <label ref="smlnm"/>
- <value ref="smlcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_lrgcd" ref="/root/cond/lrgcd" appearance="minimal" style="left:260px; top:49px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/lrglist">
- <label ref="lrgnm"/>
- <value ref="lrgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMNG00102");
- var nodelist = instance1.selectNodes("/root/init/mdllist");
- model.removeNodeset("/root/cond/mdlcd");
- model.removeNodeset("/root/cond/smlcd");
- model.makeNode("/root/cond/mdlcd");
-
- if(nodelist.length < 1 ){
- model.removeNodeset("/root/init/mdllist");
- model.removeNodeset("/root/init/smllist");
- }else{
- addComboItem( "cmb_mdlcd", "전체", "", "above");
- model.setValue("/root/cond/mdlcd",model.getValue("/root/init/mdllist/mdlcd[1]"));
- }
- cmb_mdlcd.refresh();
- cmb_smlcd.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_proddrugsetflag" ref="/root/cond/proddrugsetflag" appearance="full" cols="4" overflow="visible" style="left:260px; top:100px; width:185px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>Set</label>
- <value>1</value>
- </item>
- <item>
- <label>Single</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_goodcd" class="search_name" style="left:170px; top:123px; width:86px; height:17px; ">검색구분 :</caption>
- <input id="ipt_reqdata" ref="/root/cond/reqdata" class="input_search" imemode="alpha" appearance="input" style="left:390px; top:121px; width:145px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("bnt_srch", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_mdlcd" ref="/root/cond/mdlcd" appearance="minimal" style="left:360px; top:49px; width:95px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/mdllist">
- <label ref="mdlnm"/>
- <value ref="mdlcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRMNG00103");
- var nodelist = instance1.selectNodes("/root/init/smllist");
- model.removeNodeset("/root/cond/smlcd");
- model.makeNode("/root/cond/smlcd");
- if(nodelist.length < 1){
- model.removeNodeset("/root/init/smllist");
- }else{
- addComboItem( "cmb_smlcd", "전체", "", "above");
- model.setValue("/root/cond/smlcd",model.getValue("/root/init/smllist/smlcd[1]"));
- }
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:170px; top:100px; width:86px; height:17px; ">Set구분 :</caption>
- <select1 id="rdo_goodflag" ref="/root/cond/goodflag" appearance="full" cols="4" overflow="visible" style="left:260px; top:125px; width:125px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>01</value>
- </item>
- <item>
- <label>물품명</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:170px; top:50px; width:86px; height:17px; ">분류구분 :</caption>
- <caption id="caption14" class="search_name" style="left:170px; top:75px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="rdo_reqflag" ref="/root/cond/reqflag" appearance="full" cols="5" overflow="visible" style="left:260px; top:75px; width:261px; 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>
- </select1>
- <caption id="caption3" class="search_name" style="left:12px; top:26px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_srchflag" ref="/root/cond/srchflag" appearance="full" rows="2" overflow="visible" style="left:98px; top:26px; width:70px; height:39px; border-style:none; ">
- <choices>
- <item>
- <label>부서</label>
- <value>01</value>
- </item>
- <item>
- <label>CSR</label>
- <value>02</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchflag = model.getValue("/root/cond/srchflag");
- if(srchflag =="02"){
- grd_goodlist.visible = true;
- grd_setdetllist.visible =false;
- ipt_deptcd.disabled = true;
- btn_reqdept.disabled = true;
- ipt_deptnm.disabled = true;
- grd_setdetllist.colHidden(grd_setdetllist.colRef("safestocqty")) = false;
- grd_setdetllist.colHidden(grd_setdetllist.colRef("stockqty")) = false;
-
- }else{
- grd_goodlist.visible = false;
- grd_setdetllist.visible =true;
- ipt_deptcd.disabled = false;
- btn_reqdept.disabled = false;
- ipt_deptnm.disabled = false;
- grd_setdetllist.colHidden(grd_setdetllist.colRef("safestocqty")) = true;
- grd_setdetllist.colHidden(grd_setdetllist.colRef("stockqty")) = true;
- }
- fSearch();
-
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn2_letter4" style="left:590px; top:155px; width:64px; height:19px; ">
- <caption>선택적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var search = rdo_srchflag.value;
-
- var iParam;
- var nodelist;
-
- if(search == "01") {
- for(var i= 0;i < grd_setdetllist.rows;i++ ){
- grd_setdetllist.valueMatrix(i,grd_setdetllist.colRef("goodflag")) = "TM";
- }
- iParam = model.getValue(grd_setdetllist.nodeset);
- nodelist = instance1.selectNodes(grd_setdetllist.nodeset + "[chkyn='Y']");
- } else if(search == "02") {
- for(var i= 0;i < grd_goodlist.rows;i++ ){
- grd_goodlist.valueMatrix(i,grd_goodlist.colRef("safestocqty")) = 0;
- }
- iParam = model.getValue(grd_goodlist.nodeset);
- nodelist = instance1.selectNodes(grd_goodlist.nodeset + "[chkyn='Y']");
- }
-
- var rCVS = getNodeListCSV(nodelist);
-
- if ( checkOpener() ) {
- opener.javascript.setParameter("SPMNG00900_", rCVS);
-
- } else {
- opener.javascript.setParameter("SPMNG00900_", "");
- var rtn = messageBox("상위화면을 찾을 수", "E001");
- }
- window.close();
-
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:170px; top:26px; width:88px; height:17px; ">부 서 명 :</caption>
- <button id="btn_reqdept" class="icon_search" style="left:351px; top:25px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMNG00300");
-
- model.setValue(ipt_deptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_deptnm.attribute("ref"), model.property("deptnm"));
-
- ipt_deptcd.refresh();
- ipt_deptnm.refresh();
- fSearch();
-
- ]]>
- </script>
- </button>
- <input id="ipt_deptnm" ref="/root/cond/deptnm" class="input_search" style="left:373px; top:25px; width:172px; height:19px; "/>
- <input id="ipt_deptcd" ref="/root/cond/deptcd" class="input_default" style="left:260px; top:25px; width:85px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|