123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?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/>
- <todd/>
- <sumflag/>
- <getparamcnt/>
- </cond>
- </main>
- <init>
- <sumlist>
- <sum>
- <cdnm/>
- <grupdetldesc/>
- <getparamcnt/>
- </sum>
- </sumlist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/main/cond/fromdd",getCurrentDate());
- model.setValue("/root/main/cond/todd",getCurrentDate());
- submit("TRSNB00101");
- if (checkOpener()) {
- var sumnm = opener.javascript.getParameter("sumnm");
- if (sumnm.length > 0) {
- model.setValue("/root/main/cond/sumflag", model.getValue("/root/init/sumlist/sum[cdnm = '"+ sumnm +"']/grupdetldesc"));
- }
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRSNB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/sumlist"/>
- <submission id="TXSNB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="341" pageheight="215" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
- <group id="group1" style="left:0px; top:15px; width:325px; height:200px; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:325px; height:200px; "/>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:106px; top:73px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[]]>
- </script>
- </input>
- <button id="btn_exec" class="btn4_letter2" style="left:247px; top:115px; width:56px; height:22px; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var sSumflag = model.getValue("/root/main/cond/sumflag");
- var sFromdd = model.getValue("/root/main/cond/fromdd");
- var sTodd = model.getValue("/root/main/cond/todd");
- var getparamcnt = model.getValue("/root/main/cond/getparamcnt");
-
- if ( sSumflag == "") {
- messageBox("집계구분을 선택하세요", "I");
- model.setFocus("cb_list");
- return;
- }
-
- if(getparamcnt == '1'){ //20100315_SMY
- if ( sFromdd > getCurrentDate()) {
- messageBox("미래일자는 집계 할 수 없습니다.", "I");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- }else{
- if ( sFromdd > sTodd) {
- messageBox("집계시작일자가 종료일자보다 큽니다.", "I");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- if ( sTodd > getCurrentDate()) {
- messageBox("미래일자는 집계 할 수 없습니다.", "I");
- model.setFocus("ipt_todd");
- return;
- }
- }
-
- if ( sFromdd != "" || sTodd != "") {
- model.removeNode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send", "/root/main/cond");
- if (submit("TXSNB00101")) {
- messageBox("해당 집계기간의 집계가 완료되었습니다.", "I");
- }
- } else {
- messageBox("집계일자를 입력하세요", "I");
- model.setFocus("ipt_fromdd");
- return;
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:65px; top:165px; width:200px; height:17px; ">※ 미래일자는 집계 할 수 없습니다.</caption>
- <caption id="caption2" class="search_name" style="left:15px; top:30px; width:91px; height:17px; ">집계구분 :</caption>
- <select1 id="cb_list" ref="/root/main/cond/sumflag" class="combo_search" appearance="minimal" editmode="search" itemcount="20" style="left:106px; top:30px; width:199px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/sumlist/sum">
- <label ref="grupdetldesc"/>
- <value ref="cdnm"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sumnm = model.getValue("/root/main/cond/sumflag");
- var getparamcnt = model.getValue("/root/init/sumlist/sum[cdnm = '"+ sumnm +"']/getparamcnt");
- model.setValue("/root/main/cond/getparamcnt", getparamcnt);
-
- if(getparamcnt == '1'){
- caption3.visible = false;
- ipt_todd.visible = false;
- }else{
- caption3.visible = true;
- ipt_todd.visible = true;
- }
- caption3.refresh();
- ipt_todd.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:15px; top:73px; width:86px; height:17px; ">집계일자 :</caption>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:220px; top:73px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[]]>
- </script>
- </input>
- <caption id="caption3" style="left:199px; top:76px; width:20px; height:15px; font-weight:bold; ">~</caption>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:325px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">간호통계집계</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|