123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?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>
- <cond>
- <fromdd/>
- <ioflag>D</ioflag>
- <instcd/>
- <todd/>
- <srchflag/>
- <userid/>
- <deptcd/>
- <exedd/>
- </cond>
- </main>
- <send>
- </send>
- <init/>
- <temp>
- </temp>
- <patdiag>
- <patdiaglist/>
- </patdiag>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TXMMO03104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/patdiag"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var dutplcenm = getUserInfo("dutplcenm");
- var dutplcecd = getUserInfo("dutplcecd");
- var userid = getUserInfo("userid");
- var usernm = getUserInfo("usernm");
-
- function fInitialize(){
-
- var fromdd = getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat("YYYYMMDD");
- var todd = getCurrentDate();
-
- model.setValue("/root/main/cond/fromdd" , fromdd );
- model.setValue("/root/main/cond/todd" , todd );
- model.setValue("/root/main/cond/instcd" , getUserInfo("dutplceinstcd") );
- model.setValue("/root/main/cond/srchflag" , "1" );
- model.setValue("/root/main/cond/userid" , userid );
- model.setValue("/root/main/cond/deptcd" , dutplcecd );
- model.setValue("/root/main/cond/exedd" , getCurrentDate() );
-
- cpt_txt.value = "★ " + usernm + " ( " + userid + " )";
-
- model.refresh();
- }
-
- function fCnfmBtn(){
- var fromdd = model.getValue("/root/main/cond/fromdd");
- var todd = model.getValue("/root/main/cond/todd");
- model.setValue("/root/main/cond/exedd", getCurrentDate());
-
- if( getDateInterval(fromdd, todd) > 365 ){
- messageBox("배치 최대 기간은 1년입니다. 조회기간 날짜를 수정하세요!", "E999", "");
- return false;
- }
-
- if (submit("TXMMO03104") == true){
- alert("다빈도 상병조회 배치가 성공하였습니다. ");
- }
- else {
- alert("다빈도 상병조회 배치가 실패하였습니다. 담당자에게 문의 바랍니다. ");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="345" pageheight="135">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:324px; height:100px; "/>
- <button id="button1" class="btn4_letter2" style="left:206px; top:104px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCnfmBtn();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:266px; top:104px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:15px; width:86px; height:17px; ">조회기간 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:41px; width:86px; height:17px; ">조회구분 :</caption>
- <input id="input2" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:15px; width:90px; height:19px; "/>
- <input id="input1" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:216px; top:15px; width:90px; height:19px; "/>
- <select1 id="rdo_srchflag" ref="/root/main/cond/srchflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:105px; top:43px; width:145px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>개인별</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/cond/srchflag") == "1" ){
- cpt_txt.value = "★ " + usernm + " ( " + userid + " )";
- }else{
- cpt_txt.value = "★ " + dutplcenm;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" style="left:199px; top:15px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <caption id="cpt_txt" style="left:105px; top:65px; width:205px; height:25px; font-weight:bold; color:#0000ff; "/>
- </xhtml:body>
- </xhtml:html>
|