123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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="">
- <init>
- <acntflag>
- <cdid>1</cdid>
- <cdnm>불출</cdnm>
- <cdid>2</cdid>
- <cdnm>의료장비</cdnm>
- <cdid>3</cdid>
- <cdnm>수선</cdnm>
- <cdid>4</cdid>
- <cdnm>비품</cdnm>
- <cdid>5</cdid>
- <cdnm>비품마스터</cdnm>
- <cdid>6</cdid>
- <cdnm>약품사용정산내역</cdnm>
- </acntflag>
- </init>
- <send>
- <instcd/>
- <acntflag/>
- <stocym/>
- <stocfrdd/>
- <stoctodd/>
- </send>
- <main>
- <acntflagexcel>
- <acntflagexcellist/>
- <masterexcellist/>
- <rstsyuseexcellist/>
- </acntflagexcel>
- </main>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSO01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/acntflagexcellist"/>
- <submission id="TRRSO01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/masterexcellist"/>
- <submission id="TRRSO01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntflagexcel/rstsyuseexcellist"/>
- </model>
- <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" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- misfComboComCdListMulti("Z0007", "cmb_instcd");
-
- cmb_instcd.value = getUserInfo("dutplceinstcd");
-
- var curdate = getCurrentDate();
-
- //작업년월
- model.setValue(ipt_stocym.attribute("ref") ,curdate);
- var stocym = model.getValue("/root/send/stocym");
- var cvtdate = stocym.toDate("YYYYMM");
-
- var stocfrdd = stocym.substring(0,6)+"01";
- var stoctodd = stocym.substring(0,6)+ cvtdate.getMonthDay();
-
-
-
- model.setValue("/root/send/stocfrdd",stocfrdd);
- model.setValue("/root/send/stoctodd", stoctodd);
- cmb_acntflag.select(0);
-
- model.refresh();
- }
-
- function fCheckRetrieveData(pmsg)
- {
- if(model.getValue(cmb_acntflag.attribute("ref")).length== 0 )
- {
- if(pmsg == true)
- {
- messageBox("집계구분을 " ,"C002");
- model.setFocus("cmb_acntflag");
- }
- return false;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line7" class="line_1" style="x1:0px; y1:37px; x2:377px; y2:37px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:88px; x2:377px; y2:88px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:64px; x2:377px; y2:64px; "/>
- <line id="line35" class="line_3" style="x1:0px; y1:115px; x2:377px; y2:115px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:112px; x2:377px; y2:112px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:380; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">병원연구소 자료집계</caption>
- </group>
- <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:0px; top:12px; width:380px; height:103px; border-color:#788daf; "/>
- <button id="btn_gen" class="btn2_letter2" style="left:331px; top:17px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(fCheckRetrieveData(false) == false)return;
-
-
- var filenm = "연구소집계List_"+ cmb_instcd.label + "_" + model.getValue("/root/send/stocym").substring(0,6)+"_"+ cmb_acntflag.label ;
- var localfile = window.fileDialog("save", ",", false, filenm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (localfile != "") {
- var param = "&instcd=" + model.getValue("/root/send/instcd");
- param += "&acntflag=" + model.getValue("/root/send/acntflag");
- param += "&stocym=" + model.getValue("/root/send/stocym");
- param += "&stocfrdd=" + model.getValue("/root/send/stocfrdd");
- param += "&stoctodd=" + model.getValue("/root/send/stoctodd");
-
- if(model.getValue("/root/send/acntflag") == "5") {
- model.download(getActionURL("TRRSO01502") + param, localfile, true);
- //alert(model.getValue("/root/send/acntflag"));
- }else if(model.getValue("/root/send/acntflag") == "6"){
-
- model.download(getActionURL("TRRSO01503") + param, localfile, true);
-
-
- }else{
- //alert(model.getValue("/root/send/acntflag"));
- model.download(getActionURL("TRRSO01501") + param, localfile, true);
- }
-
-
- var rtn = messageBox("파일을", "Q004");
- if( rtn == 6 ) {
- window.exec(localfile);
- }
-
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption61" class="tit_2" style="left:5px; top:22px; width:113px; height:14px; ">병원연구소 집계</caption>
- <caption id="caption44" class="cell_1" style="left:0px; top:90px; width:108px; height:23px; vertical-align:middle; ">집계년월</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:110px; top:44px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_stocym" ref="/root/send/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:110px; top:92px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stocym = model.getValue("/root/send/stocym");
-
- var cvtdate = stocym.toDate("YYYYMM");
-
-
- var stocfrdd = stocym+"01";
- var stoctodd = stocym+ cvtdate.getMonthDay();
-
- //alert("stocym="+stocfrdd + " : " + stoctodd);
- model.setValue("/root/send/stocfrdd",stocfrdd);
- model.setValue("/root/send/stoctodd", stoctodd);
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:0px; top:42px; width:108px; height:23px; vertical-align:middle; ">기관코드</caption>
- <select1 id="cmb_acntflag" ref="/root/send/acntflag" class="combo_default" appearance="minimal" style="left:110px; top:68px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/acntflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:66px; width:108px; height:23px; vertical-align:middle; ">집계구분</caption>
- <output id="opt_stocfrdd" ref="/root/send/stocfrdd" visibility="hidden" style="left:225px; top:95px; width:55px; height:19px; "/>
- <output id="opt_stoctodd" ref="/root/send/stoctodd" visibility="hidden" style="left:300px; top:95px; width:60px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|