123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?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>
- <rsihopeqlist/>
- </grid>
- </main>
- <send>
- <instcd/>
- <fromdd/>
- <todd/>
- <fixasetcd/>
- <goodflaghngnm/>
- <goodflag>EQ</goodflag>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRFR02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rsihopeqlist"/>
- <bind id="금액계산" ref="/root/main/grid/rfcmeqgdlist/amt" calculate="../goodunitcost * ../qty" type="xsd:int"/>
- </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_rsihopeqlist);
-
-
- // 기관코드
- 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_rsihopeqlist, null, "TRRFR02901", "N");
-
-
- // 기본 사용자 설정값
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/goodflag", "EQ");
-
- model.refresh();
- }
-
-
- ]]>
- </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("TRRFR02901");
-
-
- if(grd_rsihopeqlist.rows != grd_rsihopeqlist.fixedRows)
- {
- grd_rsihopeqlist.row = grd_rsihopeqlist.fixedRows;
- grd_rsihopeqlist.select(grd_rsihopeqlist.row, grd_rsihopeqlist.colRef("fixasetcd")) = true;
-
- grd_rsihopeqlist.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");
- 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", "rsihopeqlist",
- "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" imemode="disabled" 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 != "")
- {
- 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();
-
- ]]>
- </script>
- </input>
- <caption id="caption8" style="left:806px; top:9px; width:15px; height:20px; ">~</caption>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
- <datagrid id="grd_rsihopeqlist" nodeset="/root/main/grid/rsihopeqlist" caption="장비코드^장비명^처방코드^처방명^금액^^^기관코드" colsep="^" colwidth="110, 195, 108, 183, 112, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:607px; ">
- <col ref="fixasetcd" style="text-align:left; "/>
- <col ref="fixasetnm" style="text-align:left; "/>
- <col ref="prcpcd" style="text-align:left; "/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpcdamt" style="text-align:left; "/>
- <col/>
- <col/>
- <col ref="instcd" visibility="hidden"/>
- </datagrid>
- <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[
-
- var fileName = window.fileDialog("save", ",", false, "장비별처방내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName !="")
- {
- grd_rsihopeqlist.saveExcel(fileName, "SheetName", false, false, "", "", 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" visibility="hidden" style="left:1068px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- </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>
|