123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <?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>
- <brodcstschelistinfo>
- <brodcstflagcd/>
- <brodcstdd/>
- <chrgdeptnm/>
- <biblenm/>
- <mufilenm/>
- <chrgempnm/>
- <conslrid/>
- <chrgvoluntrnm/>
- <rem/>
- <seqno/>
- <status/>
- </brodcstschelistinfo>
- </main>
- <send>
- <savedata/>
- <reqdata/>
- </send>
- <init>
- <comcodelist>
- <brodcstflagcd_cmblist/>
- </comcodelist>
- <conslrlist>
- <conslrlistinfo>
- <conslrid/>
- <conslrnm/>
- </conslrlistinfo>
- </conslrlist>
- </init>
- <hidden/>
- <temp>
- <brodcstschelistinfo/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRAYA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/conslrlist"/>
- <submission id="TXAYA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시
- function fInit() {
- //방송구분 콤보리스트 조회
- zbcfGetCodeList(new Array("A0214"), new Array("/root/init/comcodelist/brodcstflagcd_cmblist"), true);
-
- cmb_brodcstflagcd.disabled = true;
- ipt_brodcstdd.disabled = true;
-
- //원목자리스트 조회
- model.makeValue("/root/send/reqdata/joblncd", "B");
- submit("TRAYA01801");
-
- if (checkOpener()) {
- var brodcstflagcd = opener.javascript.getParameter("brodcstflagcd");
- var basedd = opener.javascript.getParameter("basedd");
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
-
- model.copyNode("/root/main/brodcstschelistinfo", "/root/temp/brodcstschelistinfo"); //등록정보 조회
- model.setValue("/root/main/brodcstschelistinfo/brodcstflagcd", brodcstflagcd);
- model.setValue("/root/main/brodcstschelistinfo/brodcstdd", basedd);
- opener.model.resetInstanceNode("/root/init/insupdtvalue");
- model.refresh();
- }
-
- //저장버튼 클릭시
- function fSaveBrodcstInfo() {
- //담당부서 필수 입력 체크
- if (model.getValue("/root/main/brodcstschelistinfo/chrgdeptnm") == "") {
- messageBox("담당과를","C001");
- model.setFocus("ipt_chrgdeptnm");
- return;
- }
-
- //저장
- var seqno = model.getValue("/root/main/brodcstschelistinfo/seqno");
- if (seqno == "") { //등록되어 있는 정보가 없으므로 insert
- model.setValue("/root/main/brodcstschelistinfo/status", 'i');
-
- } else { //update
- if (instance1.selectSingleNode("/root/main/brodcstschelistinfo").xml == instance1.selectSingleNode("/root/temp/brodcstschelistinfo").xml) {
- messageBox("변경된 데이터가 ","I004");
- return;
- } else {
- //일정 수정
- model.setValue("/root/main/brodcstschelistinfo/status", 'u');
- }
- }
- model.refresh();
-
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.copyNode("/root/send/savedata", "/root/main/brodcstschelistinfo");
-
- if(submit("TXAYA01801", false) == true){
- messageBox("자료 저장이","I002");
- model.close();
- }
-
- //저장, 수정 후 재조회하기 위한 값 넘기기
- if (checkOpener()) {
- var InsUpdtValue = opener.model.setValue(opener.root.init.insupdtvalue, 'y');
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="527" pageheight="293" guideline="1,891;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:511px; height:27px; ">
- <button id="button4" class="btn4_letter2" navindex="8" style="left:394px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveBrodcstInfo();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn4_letter2" navindex="9" style="left:453px; top:4px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <line id="line12" class="line_6" style="x1:0px; y1:0px; x2:510px; y2:0px; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:511px; height:266px; ">
- <line id="line8" class="line_2" style="x1:0px; y1:23px; x2:510px; y2:23px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:47px; x2:223px; y2:48px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:95px; x2:510px; y2:95px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:71px; x2:223px; y2:71px; "/>
- <textarea id="textarea1" ref="/root/main/brodcstschelistinfo/rem" navindex="7" scroll="vertical" style="left:82px; top:97px; width:428px; height:167px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:1px; width:79px; height:23px; vertical-align:middle; ">구분</caption>
- <caption id="caption6" class="cell_1" style="left:0px; top:25px; width:79px; height:23px; vertical-align:middle; ">담당과</caption>
- <caption id="caption7" class="cell_1" style="left:0px; top:49px; width:79px; height:23px; vertical-align:middle; ">성서구절</caption>
- <caption id="caption8" class="cell_1" style="left:0px; top:73px; width:79px; height:23px; vertical-align:middle; ">음악명</caption>
- <caption id="caption18" class="cell_1" style="left:0px; top:97px; width:79px; height:167px; vertical-align:middle; ">참고사항</caption>
- <line id="line7" class="line_3" style="x1:0px; y1:265px; x2:510px; y2:265px; "/>
- <caption id="caption10" class="cell_1" style="left:225px; top:25px; width:79px; height:70px; vertical-align:middle; ">담당자</caption>
- <caption id="caption11" class="cell_1" style="left:225px; top:0px; width:79px; height:23px; vertical-align:middle; ">방송일자</caption>
- <caption id="caption26" class="hand" style="left:305px; top:26px; width:75px; height:22px; vertical-align:middle; ">직 원 :</caption>
- <caption id="caption9" class="hand" style="left:305px; top:50px; width:73px; height:22px; vertical-align:middle; ">원목자 :</caption>
- <caption id="caption12" class="hand" style="left:305px; top:75px; width:73px; height:22px; vertical-align:middle; ">봉사자 :</caption>
- <select1 id="cmb_ngdtdwcd" ref="/root/main/brodcstschelistinfo/conslrid" class="combo_default" navindex="4" appearance="minimal" style="left:384px; top:50px; width:126px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/conslrlist/conslrlistinfo">
- <label ref="conslrnm"/>
- <value ref="conslrid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_brodcstflagcd" ref="/root/main/brodcstschelistinfo/brodcstflagcd" class="combo_default" appearance="minimal" style="left:82px; top:2px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/brodcstflagcd_cmblist/A0214">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="input1" ref="/root/main/brodcstschelistinfo/chrgvoluntrnm" class="input_default" navindex="6" style="left:384px; top:75px; width:126px; height:19px; "/>
- <input id="input2" ref="/root/main/brodcstschelistinfo/chrgempnm" class="input_default" navindex="2" style="left:384px; top:26px; width:126px; height:19px; "/>
- <input id="ipt_chrgdeptnm" ref="/root/main/brodcstschelistinfo/chrgdeptnm" class="input_default" navindex="1" style="left:82px; top:26px; width:140px; height:19px; "/>
- <input id="input10" ref="/root/main/brodcstschelistinfo/biblenm" class="input_default" navindex="3" style="left:82px; top:50px; width:140px; height:19px; "/>
- <input id="input11" ref="/root/main/brodcstschelistinfo/mufilenm" class="input_default" navindex="5" style="left:82px; top:75px; width:140px; height:19px; "/>
- <input id="ipt_brodcstdd" ref="/root/main/brodcstschelistinfo/brodcstdd" class="input_default" inputtype="date" style="left:307px; top:2px; width:135px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|