123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?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="">
- <send>
- <savedata/>
- </send>
- <main>
- <benfsource>
- <voluntrid/>
- <prizbenfflag/>
- <prizbenfdd/>
- <benfflagcd/>
- <prizflagcd/>
- <prizbenfrem/>
- <status/>
- </benfsource>
- <returnsts>
- <statusinfo>
- <restatus/>
- <voluntrid/>
- <actstatflag/>
- <restatusdd/>
- </statusinfo>
- </returnsts>
- </main>
- <init>
- <posteam1>
- <A0359/>
- </posteam1>
- <posteam2>
- <A0360/>
- </posteam2>
- <benfcd>
- <A0364>
- </A0364>
- </benfcd>
- </init>
- <hidden>
- <init>
- <comcd/>
- </init>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TXAAA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/returnsts"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <script type="javascript">
- <![CDATA[
- // 초기값
- function fInit()
- {
- /*if (checkOpener()) {
- var benfdd = opener.javascript.getParameter("benfdd");
- var posteam1 = opener.javascript.getParameter("posteam1");
- var posteam2 = opener.javascript.getParameter("posteam2");
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
- // 공통코드 셋팅
- zbcfGetCodeList(new Array("A0359", "A0360", "A0364"), new Array( "/root/init/posteam1", "/root/init/posteam2", "/root/init/benfcd") , true);
-
- //화면 오픈시 간병인명에 이름 셋팅
- //alert(sinursnm);
- model.setValue("/root/main/benfinfo/benfdd",benfdd);
- model.setValue("/root/main/benfinfo/posteam1",posteam1);
- model.setValue("/root/main/benfinfo/posteam2",posteam2);
-
- model.refresh(); */
-
- zbcfGetCodeList(new Array("A0364"), new Array( "/root/hidden/init/comcd") , true);
-
- zbcfGetKindCodeList(new Array("A0021"), new Array("A0364"),new Array("/root/hidden/init/comcd"),true,'','');
-
- model.refresh();
- }
-
- //확인
- function fSendParam()
- {
- if(model.getValue("/root/main/benfsource/prizbenfdd")=="")
- {
- //저장시 수혜일이나 수혜명이 비어있으면
- messageBox("수혜일은","I003");
- return;
- }
- if(model.getValue("/root/main/benfsource/benfflagcd")=='')
- { //저장시 수혜일이나 수혜명이 비어있으면
- messageBox("수혜명은","I003");
- return;
- }
-
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/benfsource");
-
- if(submit("TXAAA00601")==true)
- {
- if(model.getValue("/root/main/returnsts/statusinfo/restatus")=="P")
- {
- messageBox("활동기간 정보가","I004");
- return;
- }
- else
- {
- messageBox("수혜 처리가","I002");
- opener.model.makeValue("/root/benfsource/status","u");
- opener.model.makeValue("/root/benfsource/reflag","c");
- opener.model.refresh();
-
- window.close();
- }
- }
-
- }
- function fDelBenf()
- {
- var btn=messageBox("수혜내역을","Q001");
- if(btn=='6')
- {
- if(model.getValue("/root/main/benfsource/status")=="i") // // 등록을 위해 팝업창을 열었을 경우에는 삭제할 수 없다.
- {
- messageBox("삭제할 수혜 처리 내역이","I004");
- return;
- }
- model.makeValue("/root/main/benfsource/status","d");
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- model.copyNode("/root/send/savedata","/root/main/benfsource");
-
- if(submit("TXAAA00601")==true)
- {
- messageBox("수혜 삭제가","I002");
- opener.model.makeValue("/root/benfsource/reflag","c");
- opener.model.refresh();
- }
- window.close();
- }
- else if(btn=='7')
- {
- return;
- }
- }
-
-
-
- ]]>
- </script>
- <xhtml:body pagewidth="465" pageheight="132" guideline="1,500;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:105px; width:449px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:448px; y2:0px; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:392px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.setParameter("flag", "N");
- //opener.model.makeValue("/root/benfsource/status","r"); // 취소 상태값인 r 저장
- model.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:273px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendParam();
- //model.close();
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn4_letter2" style="left:333px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelBenf();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:449px; height:105px; ">
- <line id="line8" class="line_2" style="x1:0px; y1:22px; x2:446px; y2:22px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:85px; height:23px; vertical-align:middle; ">수혜일</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:24px; width:85px; height:76px; vertical-align:middle; ">비고</caption>
- <caption id="caption8" class="cell_1" style="left:198px; top:0px; width:85px; height:23px; vertical-align:middle; ">수혜명</caption>
- <select1 id="cmb_posteam2" ref="/root/main/benfsource/benfflagcd" class="combo_search" disabled="false" navindex="2" appearance="minimal" style="left:285px; top:2px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/init/comcd/A0021A0364">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_benfdd" ref="/root/main/benfsource/prizbenfdd" class="input_default" disabled="false" navindex="1" inputtype="date" style="left:88px; top:2px; width:107px; height:19px; "/>
- <textarea id="tar_rem" ref="/root/main/benfsource/prizbenfrem" navindex="3" maxlength="33" style="left:88px; top:25px; width:357px; height:76px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|