SPAER02300_예약변경조회부서관리.xrw 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. <examcurelist>
  11. <item>
  12. <suppdeptcd/>
  13. <flag/>
  14. </item>
  15. </examcurelist>
  16. </main>
  17. <send>
  18. <basecd/>
  19. <flag/>
  20. <globalinstance>
  21. <instance1/>
  22. </globalinstance>
  23. <req>
  24. <data/>
  25. </req>
  26. <windowloadinstance>SPAER02300</windowloadinstance>
  27. </send>
  28. <init>
  29. <cmb_info>
  30. <initbasesuppdeptcd>
  31. <basesuppdeptcd/>
  32. <depthngnm/>
  33. </initbasesuppdeptcd>
  34. </cmb_info>
  35. </init>
  36. <hidden>
  37. <item/>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <submission id="TRAER02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  42. <submission id="TXAER02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
  43. <submission id="TRAER02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/examcurelist"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. model.setValue("/root/send/flag", "1"); // 1 : 예약변경 및 취소조회
  47. submit("TRAER02201");
  48. readfunc();
  49. ]]>
  50. </script>
  51. <submission id="TRZBC00101"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  56. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  57. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  58. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  59. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  60. <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. function readfunc() {
  64. model.removeNodeset("/root/main/examcurelist/item");
  65. submit("TRAER02301");
  66. }
  67. function datacheck(){
  68. var ssuppdeptcd = "";
  69. var ssuppdeptcd1 = "";
  70. var sbaseexcuroomcd = "";
  71. for (var i = 1; i < datagrid1.rows; i++){
  72. ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
  73. if (ssuppdeptcd == ""){
  74. messageBox(i + "번째행의 수행부서는 필수 선택항목입니다.", "E999", "");
  75. return false;
  76. }
  77. }
  78. for (var i = 1; i < datagrid1.rows - 1; i++){
  79. ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
  80. for (var j = 1; j < datagrid1.rows; j++){
  81. ssuppdeptcd1 = model.getValue("/root/main/examcurelist/item[" + j + "]/suppdeptcd");
  82. if (i != j){
  83. if (ssuppdeptcd == ssuppdeptcd1){
  84. messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  85. return false;
  86. }
  87. }
  88. }
  89. }
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body guideline="1,710;2,654;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:398px; height:642px; ">
  96. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">기준지원부서 관리</caption>
  97. <line id="line1" class="line_1" style="x1:3px; y1:28px; x2:390px; y2:29px; "/>
  98. <button id="btn_grdadd" class="btn2_letter3" style="left:280px; top:5px; width:53px; height:19px; ">
  99. <caption>행추가</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. datagrid1.addRow();
  103. model.setValue("/root/main/examcurelist/item[" + datagrid1.row + "]/flag", model.getValue("/root/send/flag"));
  104. ]]>
  105. </script>
  106. </button>
  107. <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:336px; top:5px; width:53px; height:19px; ">
  108. <caption>행삭제</caption>
  109. <script type="javascript" ev:event="DOMActivate">
  110. <![CDATA[
  111. datagrid1.deleteRow(datagrid1.row);
  112. ]]>
  113. </script>
  114. </button>
  115. <datagrid id="datagrid1" nodeset="/root/main/examcurelist/item" caption="수행부서^caption1" colsep="^" colwidth="366, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:390px; height:575px; ">
  116. <col disabled="true" ref="suppdeptcd" type="combo">
  117. <choices>
  118. <itemset nodeset="/root/init/cmb_info/initbasesuppdeptcd">
  119. <label ref="depthngnm"/>
  120. <value ref="basesuppdeptcd"/>
  121. </itemset>
  122. </choices>
  123. </col>
  124. <col ref="flag" visibility="hidden"/>
  125. </datagrid>
  126. </group>
  127. <group id="grp_btn" style="left:0px; top:620px; width:400px; height:34px; ">
  128. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:179px; y2:0px; "/>
  129. <button id="btn_save" class="btn4_letter2" style="left:335px; top:5px; width:56px; height:22px; ">
  130. <caption>저장</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. if (datacheck() == false){
  134. return;
  135. }
  136. var update = getGridUpdateData(datagrid1);
  137. if(update == ""){
  138. messageBox("업데이트 정보가 없습니다.", "I");
  139. return 0;
  140. } else {
  141. model.setValue("/root/send/req/data", update);
  142. if (submit("TXAER02301")){
  143. readfunc();
  144. }
  145. }
  146. ]]>
  147. </script>
  148. </button>
  149. </group>
  150. <group id="grp_tle" style="left:0px; top:0px; width:395px; height:13px; ">
  151. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:188px; height:14px; ">예약변경 조회 지원부서 관리</caption>
  152. </group>
  153. </xhtml:body>
  154. </xhtml:html>