123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?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="">
- <send>
- <judgenddd/>
- <data1>
- <pid/>
- <indd/>
- <cretno/>
- </data1>
- <data2/>
- <data3/>
- </send>
- <main>
- <list1>
- <mdlcalcend/>
- </list1>
- </main>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 중간계산마감일 초기화 (default : 현재일)
- model.setValue("/root/send/judgenddd", getCurrentDate());
-
- // 중간계산마감이력 조회
- submit("TRPIJ02201");
- ]]>
- </script>
- <submission id="TRPIJ02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list1"/>
- <submission id="TXPIJ02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/temp"/>
- <submission id="TXPIJ02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/temp"/>
- </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/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="480" pageheight="390" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:15px; width:460px; height:307px; ">
- <caption id="caption10" style="left:18px; top:15px; width:86px; height:20px; ">중간계산마감일</caption>
- <line id="line6" class="line_1" style="x1:5px; y1:38px; x2:452px; y2:38px; "/>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:10px; top:14px; width:104px; height:20px; "/>
- <button id="btn_mdlcalcend" class="btn2_letter2" style="left:335px; top:15px; width:42px; height:19px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 중간계산 마감일자 검사
- var judgenddd = model.getValue("/root/send/judgenddd");
- if (!isValidDateTime(judgenddd)) {
- messageBox("올바른 형식의 시작일자를", "C001"); // 올바른 형식의 시작일자를 입력하십시오.
- return;
- }
- var indd = model.getValue("/root/send/data1/indd");
- var dateDif = getDateInterval(indd, judgenddd); // (dateHelper.js) 두 일자사이의 차를 일단위로 반환
- if (dateDif < 0) {
- messageBox("마감일자가 입원일자 보다 이전", "E008");
- return;
- }
-
- if (messageBox("중간계산 마감을", "Q004") != 6) {
- return;
- }
-
- model.removenode("/root/send/data2");
- model.makeNode("/root/send/data2");
- model.makeValue("/root/send/data2/pid", model.getValue("/root/send/data1/pid"));
- model.makeValue("/root/send/data2/indd", indd);
- model.makeValue("/root/send/data2/cretno", model.getValue("/root/send/data1/cretno"));
- model.makeValue("/root/send/data2/judgenddd", judgenddd);
-
- // 중간계산마감 수행
- if (submit("TXPIJ02201")) {
- // 다시 조회한다.
- submit("TRPIJ02201");
- }
- ]]>
- </script>
- </button>
- <line id="line4" class="line_3" style="x1:5px; y1:303px; x2:452px; y2:303px; "/>
- <button id="btn_mdlcalccancel" class="btn2_letter4" style="left:380px; top:15px; width:64px; height:19px; ">
- <caption>마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택된 row 가 있는지 체크
- var status = false;
- for (var i = 1; i < grd_mdlcalcend.rows; i++) {
- var chk = model.getValue("/root/main/list1/mdlcalcend[" + i + "]/chk");
- if (chk == "true") {
- status = true;
- i = grd_mdlcalcend.rows;
- }
- }
- // 선택된 row 가 없는 경우 메세지 처리
- if (status == false) {
- messageBox("마감을 취소할 데이터가 선택되지", "E007");
- return;
- }
-
- // 선택된 row 의 마감이력을 삭제한다.
- if (messageBox("마감취소를", "Q003") != 6) {
- return;
- }
- model.removenode("/root/send/data3");
- model.makeNode("/root/send/data3");
- var idx = 1;
- for (var j = 1; j < grd_mdlcalcend.rows; j++) {
- var chk = model.getValue("/root/main/list1/mdlcalcend[" + j + "]/chk");
- if (chk == "true") {
- model.makeValue("/root/send/data3/mdlcalcend[" + idx + "]/pid", model.getValue("/root/main/list1/mdlcalcend[" + j + "]/pid"));
- model.makeValue("/root/send/data3/mdlcalcend[" + idx + "]/indd", model.getValue("/root/main/list1/mdlcalcend[" + j + "]/indd"));
- model.makeValue("/root/send/data3/mdlcalcend[" + idx + "]/cretno", model.getValue("/root/main/list1/mdlcalcend[" + j + "]/cretno"));
- model.makeValue("/root/send/data3/mdlcalcend[" + idx + "]/judgenddd", model.getValue("/root/main/list1/mdlcalcend[" + j + "]/judgenddd"));
- idx++;
- }
- }
-
- if (submit("TXPIJ02202")) {
- // 다시 조회한다.
- submit("TRPIJ02201");
- }
- ]]>
- </script>
- </button>
- <input id="ipt_judgenddd" ref="/root/send/judgenddd" class="input_search" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:119px; top:15px; width:100px; height:19px; "/>
- <datagrid id="grd_mdlcalcend" nodeset="/root/main/list1/mdlcalcend" caption="선택^pid^indd^cretno^마감일자^fstrgstrid^fstrgstdt^심사자^심사일시" colsep="^" colwidth="30, 100, 100, 100, 135, 100, 100, 120, 135" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:43px; width:447px; height:259px; ">
- <col ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="pid" visibility="hidden" style="text-align:center; "/>
- <col ref="indd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="judgenddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstrgstrid" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- </group>
- <caption id="caption3" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; vertical-align:middle; ">중간계산마감</caption>
- <button id="btn_close" class="btn4_letter2" style="left:395px; top:325px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|