123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- <?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>장비수익성분석</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <rfcmfacdlist/>
- <rsihopeqlist/>
- <rfcmeqgdlist/>
- <prcpexecusecntlist/>
- </grid>
- </main>
- <send>
- <instcd/>
- <fromdd/>
- <todd/>
- <fixasetcd/>
- <goodflaghngnm/>
- <goodflag>EQ</goodflag>
- <grid>
- <rfcmfacdlist_row/>
- </grid>
- <prcpdeptcd/>
- <prcpdeptnm/>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRFR02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfcmfacdlist"/>
- <submission id="TRRFR02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/rsihopeqlist"/>
- <submission id="TRRFR02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/rfcmeqgdlist"/>
- <bind id="금액계산" ref="/root/main/grid/rfcmeqgdlist/amt" calculate="../goodunitcost * ../qty" type="xsd:int"/>
- <submission id="TXRFR02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfcmeqgdlist" resultref="/root/temp"/>
- <submission id="TRRFR02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/prcpexecusecntlist"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- //초기화
- misfGridInit(grd_rfcmfacdlist);
- misfGridInit(grd_rsihopeqlist);
- misfGridInit(grd_rfcmeqgdlist);
-
- misfGridInit(grd_prcpexecusecntlist);
-
-
- // 기관코드
- misfComboComCdList("Z0007", cmb_instcd);
-
- // 현재 날짜 기본 입력(6개월 간격 설정)
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
-
- // 청구승인이 된것만 조회하기 위한 구분자 값.
- misfMsterDetailSet(grd_rfcmfacdlist, null, "TRRFR02701", "N");
- misfMsterDetailSet(grd_rsihopeqlist, null, "TRRFR02702", "N");
-
- misfMsterDetailSet(grd_prcpexecusecntlist, null, "TRRFR02704", "N");
-
- misfMsterDetailSet(grd_rfcmeqgdlist, null, "TRRFR02703", "Y");
-
-
- // 기본 사용자 설정값
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/goodflag", "EQ");
-
- model.refresh();
- }
-
-
- function fSettingGoodList(pnode, nodename){
-
- var codynode = instance1.selectNodes(pnode + "/*");
- var addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
-
- if(model.getValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
- for (var j = 1; j <= codynode.length ; j++) {
- if((grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows == 0) ||
- (addRow > grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows))
- {
- misfGridIUD(grd_rfcmeqgdlist,"A");
- addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
- fDefaultSetting(addRow );
- }
-
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/qty" , 1);
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/amt" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
-
- addRow = addRow + 1;
- }
-
- model.refresh();
- }
-
-
- function fDefaultSetting(prow)
- {
- model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/instcd" , cmb_instcd.value);
- model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/fixasetcd" , grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")) );
- model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/fromdd" , getCurrentDate());
- model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/todd" , '99991231');
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">장비수익성분석</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:209px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
- if(!isRequiredControls("ipt_fromdd"))return;
- if(!isRequiredControls("ipt_todd"))return;
-
- misfGridInit(grd_rsihopeqlist);
-
- //0722
- misfGridInit(grd_prcpexecusecntlist);
- misfGridInit(grd_rfcmeqgdlist);
-
- submit("TRRFR02701");
-
- model.refresh();
-
- if(grd_rfcmfacdlist.rows != grd_rfcmfacdlist.fixedRows)
- {
- grd_rfcmfacdlist.row = grd_rfcmfacdlist.fixedRows;
- grd_rfcmfacdlist.select(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")) = true;
-
- grd_rfcmfacdlist.dispatch("onrowchanged");
- }
-
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:7; x2:1110px; y2:60; "/>
- <caption id="cap_fromdd" class="search_name" style="left:573px; top:9px; width:90px; height:17px; ">처방기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:663px; top:8px; width:140px; height:19px; text-align:center; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:823px; top:8px; width:140px; height:19px; text-align:center; "/>
- <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:35px; width:97px; height:17px; ">장비명 :</caption>
- <button id="btn_fixasetcd" class="icon_search" style="left:244px; top:36px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SPRSD00240", "instcd", cmb_instcd.value, "Y");
- //rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SMRSC03500", "instcd", cmb_instcd.value, "Y");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_goodflaghngnm" ref="/root/send/goodflaghngnm" class="input_default" style="left:265px; top:36px; width:235px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- if(ipt_goodflaghngnm.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
- "requirementcd,instcd,requirementnm", "goodflaghngnm," + cmb_instcd.value + "," + ipt_goodflaghngnm.value, "",
- "fixasetcd,goodflaghngnm", ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
- }else{
- ipt_fixasetcd.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fixasetcd" ref="/root/send/fixasetcd" class="input_default" style="left:106px; top:35px; width:134px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd"))return;
-
- if(ipt_fixasetcd.value.length == 0)
- ipt_goodflaghngnm.value = "";
- else
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
- "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
- "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
-
- /*if(ipt_fixasetcd.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
- "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
- "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
- }else{
- ipt_goodflaghngnm.value = "";
- }
- */
- model.refresh();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption8" style="left:806px; top:9px; width:15px; height:20px; ">~</caption>
- <caption id="cap_deptcd" class="search_name" style="left:573px; top:40px; width:89px; height:17px; ">처방부서 :</caption>
- <input id="ipt_deptnm" ref="/root/send/prcpdeptnm" class="input_search" navindex="6" style="left:792px; top:39px; width:147px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnm.value == ""){
- ipt_deptcd.value = "";
- }else {
- misfValidationCheck("02", "", "deptcd,deptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" style="left:773px; top:41px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/send/prcpdeptcd" class="input_search" navindex="6" style="left:663px; top:39px; width:106px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcd.value == ""){
- ipt_deptnm.value = "";
- }else {
- misfValidationCheck("02", "", "deptcd,deptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
- <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacdlist" caption="장비코드^장비명^모델명^금액^구입일^상위부서^사용부서^등록^기관코드^ fromdd^todd" colsep="^" colwidth="175, 299, 200, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:218px; ">
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="goodflaghngnm" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="possnamt" format="#,###" style="text-align:right; "/>
- <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cntrdeptnm" style="text-align:left; "/>
- <col ref="mngtdeptnm" style="text-align:left; "/>
- <col/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- //0722
- // misfGridInit(grd_rsihopeqlist);
- // misfGridInit(grd_prcpexecusecntlist);
- // misfGridInit(grd_rfcmeqgdlist);
- //
-
- grd_rfcmfacdlist.dispatch("onmouseup");
-
- if(grd_rfcmfacdlist.row < grd_rfcmfacdlist.fixedRows) return;
-
- if(!isRequiredControls("ipt_fromdd"))return;
- if(!isRequiredControls("ipt_todd"))return;
-
- model.copyNode("/root/send/grid/rfcmfacdlist_row" , grd_rfcmfacdlist.attribute("nodeset") + "[" + grd_rfcmfacdlist.row + "]");
- model.setValue("/root/send/grid/rfcmfacdlist_row/instcd", cmb_instcd.value);
- model.makeNode("/root/send/grid/rfcmfacdlist_row/fromdd");
- model.makeNode("/root/send/grid/rfcmfacdlist_row/todd");
- model.setValue("/root/send/grid/rfcmfacdlist_row/fromdd" , ipt_fromdd.value);
- model.setValue("/root/send/grid/rfcmfacdlist_row/todd" , ipt_todd.value);
-
-
- submit("TRRFR02702", false);
-
- //수행코드에 따른 재료 사용건수 및 금액
- submit("TRRFR02704", false);
-
- //장비별 처방내역 List
- submit("TRRFR02703");
- grd_rfcmeqgdlist.colDisabled(grd_rfcmeqgdlist.colRef("goodcd")) = true;
-
- ]]>
- </script>
- </datagrid>
- <button id="button14" class="btn2_letter7" disabled="true" visibility="hidden" style="left:1055px; top:87px; width:97px; height:19px; ">
- <caption>처방코드입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
- window.load("SPRFR02701_처방코드입력.xrw","modeless", "SPRFR02701_처방코드입력.xrw", "width:1010px; height:610;min:hidden;max:hidden;align:center", "" ,"");
- ]]>
- </script>
- </button>
- <line id="line8" class="line_1" style="x1:0px; y1:593px; x2:1194px; y2:592px; "/>
- <datagrid id="grd_rfcmeqgdlist" nodeset="/root/main/grid/rfcmeqgdlist" caption="적용시작일자^적용종료일자^처방코드^물품코드^물품명^규격^단가^수량^금액^기관코드^고정자산코드" colsep="^" colwidth="90, 90, 100, 106, 295, 166, 120, 72, 122, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:596px; width:1195px; height:143px; ">
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcpcd" type="input" _key="true"/>
- <col ref="goodcd" type="inputbutton" _chartype="upper" _key="true"/>
- <col ref="goodnm" type="input" _key="true"/>
- <col ref="goodspec"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="qty" type="input" style="text-align:right; "/>
- <col ref="amt" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="fixasetcd" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodcd") && grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodcd")).length> 0 ) {//물품코드조회
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd"
- ,"goodcd," + cmb_instcd.value + ",Y," + grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodcd"))
- ,"","goodcd,goodnm,goodspec,goodunitcost"
- ,grd_rfcmeqgdlist,"SPRSD00190","instcd,goodflag","cmb_instcd," + "Y" ,"Y");
- model.refresh();
-
- var cur_row = grd_rfcmeqgdlist.row;
- var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("goodnm")).length == 0)
- {
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodspec" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodunitcost" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/qty" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/amt" , "");
- }
- else if (CSV.length > 0)
- {
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd","");
- setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
-
- fSettingGoodList("/root/copynode", "rfcmeqgdlist");
- }
-
- }else if(grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodnm") && grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodnm")).length> 0) {//물품명 조회
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm"
- ,"goodnm," + cmb_instcd.value + ",Y," + grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodnm"))
- ,"","goodcd,goodnm,goodspec,goodunitcost"
- ,grd_rfcmeqgdlist,"SPRSD00190","instcd,goodflag","cmb_instcd," + "Y" ,"Y");
- model.refresh();
-
- var cur_row = grd_rfcmeqgdlist.row;
- var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
-
- if(CSV.length == 0 && grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("goodcd")).length == 0)
- {
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodspec" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodunitcost" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/qty" , "");
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/amt" , "");
- }
- else if (CSV.length > 0)
- {
- model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm","");
- setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
-
- fSettingGoodList("/root/copynode", "rfcmeqgdlist");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if (grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodcd")) {//구성물품코드를 눌렀을 경우
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- rszfOpenPopUpListByWndName(grd_rfcmeqgdlist,"","goodcd,goodnm","SPRSD00190","instcd,goodflag", "cmb_instcd,Y");
-
- var cur_row = grd_rfcmeqgdlist.row;
- var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
-
- fSettingGoodList("/root/copynode", "rfcmeqgdlist");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line13" class="line_1" style="x1:0px; y1:355px; x2:600px; y2:355px; "/>
- <datagrid id="grd_rsihopeqlist" nodeset="/root/main/grid/rsihopeqlist" caption="처방부서^처방코드^처방코드명^건수^금액^기관코드^장비코드" colsep="^" colwidth="124, 84, 205, 73, 86, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:360px; width:600px; height:201px; ">
- <col ref="prcpdeptnm" style="text-align:left; "/>
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpcnt" format="#,###" style="text-align:right; "/>
- <col ref="prcpamt" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption13" class="tit_2" style="left:5px; top:340px; width:295px; height:13px; ">처방부서별 수행건수 및 금액</caption>
- <datagrid id="grd_prcpexecusecntlist" nodeset="/root/main/grid/prcpexecusecntlist" caption="검사실행부서^물품코드^건수^구입금액^금액^수량^금액^기관^장비코드^검사실코드" colsep="^" colwidth="114, 151, 100, 104, 96" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:605px; top:360px; width:590px; height:201px; ">
- <col ref="prcpexecdeptnm"/>
- <col ref="goodcd"/>
- <col ref="prcpcnt" format="#,###" style="text-align:right; "/>
- <col ref="possnamt" format="#,###" style="text-align:right; "/>
- <col ref="prcpamt" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <col ref="prcpexecdeptcd" visibility="hidden"/>
- </datagrid>
- <line id="line14" class="line_1" style="x1:605px; y1:355px; x2:1195; y2:355px; "/>
- <caption id="caption14" class="tit_2" style="left:610px; top:340px; width:305px; height:13px; ">수행코드에 따른 재료 사용건수 및 금액</caption>
- <caption id="caption4" class="tit_2" style="left:0px; top:92px; width:295px; height:14px; ">장비내역</caption>
- <button id="button1" class="btn2_letter2" style="left:1152px; top:87px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfSaveExcel(grd_rfcmfacdlist , "장비내역");
-
- var fileName = window.fileDialog("save", ",", false, "장비내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName !="")
- {
- grd_rfcmfacdlist.saveExcel(fileName, "장비내역", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter6" disabled="true" visibility="hidden" style="left:969px; top:87px; width:86px; height:19px; ">
- <caption>수익성 분석</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.load("SPRFR02702_수익성분석출력물.xrw","modeless", "SPRFR02702_수익성분석출력물.xrw", "width:1010px; height:610;min:hidden;max:hidden;align:center", "" ,"");
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter3" style="left:1083px; top:571px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( grd_rfcmfacdlist.fixedRows == grd_rfcmfacdlist.rows || grd_rfcmfacdlist.row < 1)
- {
- messageBox("장비내역의 장비를 클릭 하신 후에 처방내역 추가 작업을 해주세요.", "");
- return;
- }
-
- misfGridIUD(grd_rfcmeqgdlist, "A");
-
- grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("instcd")) = cmb_instcd.value;
- grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("fixasetcd")) = grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd"));
- grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("fromdd")) = getCurrentDate();
- grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("todd")) = '99991231';
-
- grd_rfcmeqgdlist.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter3" style="left:1138px; top:571px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_rfcmeqgdlist, "D");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:0px; top:576px; width:396px; height:14px; ">수행코드에 따른 재료 사은 내역</caption>
- <button id="button2" class="btn2_letter2" style="left:555px; top:335px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfSaveExcel(grd_rfcmfacdlist , "장비내역");
-
- var fileName = window.fileDialog("save", ",", false, "장비수익_처방부서별 수행건수", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName !="")
- {
- grd_rsihopeqlist.saveExcel(fileName, "장비수익_처방부서별", false, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkKeyColumn("grd_rfcmeqgdlist")) return;
-
- //장비 처방내역List 저장.
- misfSave("TXRFR02703");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line16" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|