SPAYA01800_방송기도일정등록.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>방송기도일정등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <brodcstschelistinfo>
  11. <brodcstflagcd/>
  12. <brodcstdd/>
  13. <chrgdeptnm/>
  14. <biblenm/>
  15. <mufilenm/>
  16. <chrgempnm/>
  17. <conslrid/>
  18. <chrgvoluntrnm/>
  19. <rem/>
  20. <seqno/>
  21. <status/>
  22. </brodcstschelistinfo>
  23. </main>
  24. <send>
  25. <savedata/>
  26. <reqdata/>
  27. </send>
  28. <init>
  29. <comcodelist>
  30. <brodcstflagcd_cmblist/>
  31. </comcodelist>
  32. <conslrlist>
  33. <conslrlistinfo>
  34. <conslrid/>
  35. <conslrnm/>
  36. </conslrlistinfo>
  37. </conslrlist>
  38. </init>
  39. <hidden/>
  40. <temp>
  41. <brodcstschelistinfo/>
  42. </temp>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. fInit();
  48. ]]>
  49. </script>
  50. <submission id="TRAYA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/conslrlist"/>
  51. <submission id="TXAYA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  52. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  56. <script type="javascript">
  57. <![CDATA[
  58. //화면 오픈시
  59. function fInit() {
  60. //방송구분 콤보리스트 조회
  61. zbcfGetCodeList(new Array("A0214"), new Array("/root/init/comcodelist/brodcstflagcd_cmblist"), true);
  62. cmb_brodcstflagcd.disabled = true;
  63. ipt_brodcstdd.disabled = true;
  64. //원목자리스트 조회
  65. model.makeValue("/root/send/reqdata/joblncd", "B");
  66. submit("TRAYA01801");
  67. if (checkOpener()) {
  68. var brodcstflagcd = opener.javascript.getParameter("brodcstflagcd");
  69. var basedd = opener.javascript.getParameter("basedd");
  70. } else {
  71. messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  72. }
  73. model.copyNode("/root/main/brodcstschelistinfo", "/root/temp/brodcstschelistinfo"); //등록정보 조회
  74. model.setValue("/root/main/brodcstschelistinfo/brodcstflagcd", brodcstflagcd);
  75. model.setValue("/root/main/brodcstschelistinfo/brodcstdd", basedd);
  76. opener.model.resetInstanceNode("/root/init/insupdtvalue");
  77. model.refresh();
  78. }
  79. //저장버튼 클릭시
  80. function fSaveBrodcstInfo() {
  81. //담당부서 필수 입력 체크
  82. if (model.getValue("/root/main/brodcstschelistinfo/chrgdeptnm") == "") {
  83. messageBox("담당과를","C001");
  84. model.setFocus("ipt_chrgdeptnm");
  85. return;
  86. }
  87. //저장
  88. var seqno = model.getValue("/root/main/brodcstschelistinfo/seqno");
  89. if (seqno == "") { //등록되어 있는 정보가 없으므로 insert
  90. model.setValue("/root/main/brodcstschelistinfo/status", 'i');
  91. } else { //update
  92. if (instance1.selectSingleNode("/root/main/brodcstschelistinfo").xml == instance1.selectSingleNode("/root/temp/brodcstschelistinfo").xml) {
  93. messageBox("변경된 데이터가 ","I004");
  94. return;
  95. } else {
  96. //일정 수정
  97. model.setValue("/root/main/brodcstschelistinfo/status", 'u');
  98. }
  99. }
  100. model.refresh();
  101. model.removeNodeset("/root/send/savedata");
  102. model.makeNode("/root/send/savedata");
  103. model.copyNode("/root/send/savedata", "/root/main/brodcstschelistinfo");
  104. if(submit("TXAYA01801", false) == true){
  105. messageBox("자료 저장이","I002");
  106. model.close();
  107. }
  108. //저장, 수정 후 재조회하기 위한 값 넘기기
  109. if (checkOpener()) {
  110. var InsUpdtValue = opener.model.setValue(opener.root.init.insupdtvalue, 'y');
  111. } else {
  112. messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
  113. }
  114. }
  115. ]]>
  116. </script>
  117. </xhtml:head>
  118. <xhtml:body pagewidth="527" pageheight="293" guideline="1,891;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  119. <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:511px; height:27px; ">
  120. <button id="button4" class="btn4_letter2" navindex="8" style="left:394px; top:4px; width:56px; height:22px; ">
  121. <caption>저장</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. fSaveBrodcstInfo();
  125. ]]>
  126. </script>
  127. </button>
  128. <button id="button9" class="btn4_letter2" navindex="9" style="left:453px; top:4px; width:56px; height:22px; ">
  129. <caption>취소</caption>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. model.close();
  133. ]]>
  134. </script>
  135. </button>
  136. <line id="line12" class="line_6" style="x1:0px; y1:0px; x2:510px; y2:0px; "/>
  137. </group>
  138. <group id="group1" scroll="auto" style="left:0px; top:0px; width:511px; height:266px; ">
  139. <line id="line8" class="line_2" style="x1:0px; y1:23px; x2:510px; y2:23px; "/>
  140. <line id="line9" class="line_2" style="x1:0px; y1:47px; x2:223px; y2:48px; "/>
  141. <line id="line10" class="line_2" style="x1:0px; y1:95px; x2:510px; y2:95px; "/>
  142. <line id="line11" class="line_2" style="x1:0px; y1:71px; x2:223px; y2:71px; "/>
  143. <textarea id="textarea1" ref="/root/main/brodcstschelistinfo/rem" navindex="7" scroll="vertical" style="left:82px; top:97px; width:428px; height:167px; "/>
  144. <caption id="caption5" class="cell_1" style="left:0px; top:1px; width:79px; height:23px; vertical-align:middle; ">구분</caption>
  145. <caption id="caption6" class="cell_1" style="left:0px; top:25px; width:79px; height:23px; vertical-align:middle; ">담당과</caption>
  146. <caption id="caption7" class="cell_1" style="left:0px; top:49px; width:79px; height:23px; vertical-align:middle; ">성서구절</caption>
  147. <caption id="caption8" class="cell_1" style="left:0px; top:73px; width:79px; height:23px; vertical-align:middle; ">음악명</caption>
  148. <caption id="caption18" class="cell_1" style="left:0px; top:97px; width:79px; height:167px; vertical-align:middle; ">참고사항</caption>
  149. <line id="line7" class="line_3" style="x1:0px; y1:265px; x2:510px; y2:265px; "/>
  150. <caption id="caption10" class="cell_1" style="left:225px; top:25px; width:79px; height:70px; vertical-align:middle; ">담당자</caption>
  151. <caption id="caption11" class="cell_1" style="left:225px; top:0px; width:79px; height:23px; vertical-align:middle; ">방송일자</caption>
  152. <caption id="caption26" class="hand" style="left:305px; top:26px; width:75px; height:22px; vertical-align:middle; ">직 원 :</caption>
  153. <caption id="caption9" class="hand" style="left:305px; top:50px; width:73px; height:22px; vertical-align:middle; ">원목자 :</caption>
  154. <caption id="caption12" class="hand" style="left:305px; top:75px; width:73px; height:22px; vertical-align:middle; ">봉사자 :</caption>
  155. <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; ">
  156. <choices>
  157. <itemset nodeset="/root/init/conslrlist/conslrlistinfo">
  158. <label ref="conslrnm"/>
  159. <value ref="conslrid"/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <select1 id="cmb_brodcstflagcd" ref="/root/main/brodcstschelistinfo/brodcstflagcd" class="combo_default" appearance="minimal" style="left:82px; top:2px; width:140px; height:19px; ">
  164. <choices>
  165. <itemset nodeset="/root/init/comcodelist/brodcstflagcd_cmblist/A0214">
  166. <label ref="cdnm"/>
  167. <value ref="cdid"/>
  168. </itemset>
  169. </choices>
  170. </select1>
  171. <input id="input1" ref="/root/main/brodcstschelistinfo/chrgvoluntrnm" class="input_default" navindex="6" style="left:384px; top:75px; width:126px; height:19px; "/>
  172. <input id="input2" ref="/root/main/brodcstschelistinfo/chrgempnm" class="input_default" navindex="2" style="left:384px; top:26px; width:126px; height:19px; "/>
  173. <input id="ipt_chrgdeptnm" ref="/root/main/brodcstschelistinfo/chrgdeptnm" class="input_default" navindex="1" style="left:82px; top:26px; width:140px; height:19px; "/>
  174. <input id="input10" ref="/root/main/brodcstschelistinfo/biblenm" class="input_default" navindex="3" style="left:82px; top:50px; width:140px; height:19px; "/>
  175. <input id="input11" ref="/root/main/brodcstschelistinfo/mufilenm" class="input_default" navindex="5" style="left:82px; top:75px; width:140px; height:19px; "/>
  176. <input id="ipt_brodcstdd" ref="/root/main/brodcstschelistinfo/brodcstdd" class="input_default" inputtype="date" style="left:307px; top:2px; width:135px; height:19px; "/>
  177. </group>
  178. </xhtml:body>
  179. </xhtml:html>