SPCMZ00300_내부고객그룹관리.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCMZ00300_내부고객그룹관리
  4. * Summary : 내부고객그룹관리
  5. * Programmer : 최정환
  6. * Date Written : 2007.09.05
  7. * History : 2007.09.05
  8. * Remark :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>내부고객그룹관리</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <innrgrupattr>
  19. <innrgrupid/>
  20. <innrgrupnm/>
  21. <publyn>N</publyn>
  22. <cretuserid/>
  23. <savemode/>
  24. </innrgrupattr>
  25. <innrgruplist>
  26. <innrgrupid/>
  27. <innrgrupnm/>
  28. <publyn/>
  29. <cretuserid/>
  30. </innrgruplist>
  31. </main>
  32. <send>
  33. <innrgrupattr/>
  34. </send>
  35. <hidden/>
  36. </root>
  37. </instance>
  38. <submission id="TRCMZ00301" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/inngrupattr"/>
  39. <submission id="TXCMZ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/innrgrupattr" replace="instance"/>
  40. <submission id="TXCMZ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/innrgrupattr" replace="instance"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. function fCheckAuth() {
  44. // 권한체크
  45. if (!checkAuth("x")) {
  46. btn_del.disabled = true;
  47. btn_save.disabled = true;
  48. }
  49. }
  50. // 입력모드로 표시
  51. model.setValue("/root/main/innrgrupattr/savemode","I");
  52. // 내부고객리스트 조회 호출
  53. fGetInnrgrup();
  54. ]]>
  55. </script>
  56. <script type="javascript">
  57. <![CDATA[
  58. function fGetInnrgrup() {
  59. model.removeNodeset("/root/main/innrgruplist");
  60. // 내부고객그룹리스트
  61. submit("TRCMZ00301");
  62. }
  63. function fSaveInnrGrup() {
  64. var innrgrupnm = model.getValue("/root/main/innrgrupattr/innrgrupnm");
  65. if (innrgrupnm == "" ) {
  66. messageBox("내부고객그룹명을 ","C001");
  67. } else {
  68. model.copyNode( "/root/send/innrgrupattr", "/root/main/innrgrupattr" );
  69. submit("TXCMZ00301");
  70. fGetInnrgrup();
  71. }
  72. }
  73. function fDelInnrGrup() {
  74. var innrgrupid = model.getValue("/root/main/innrgrupattr/innrgrupid");
  75. if (innrgrupid == "" ) {
  76. messageBox("삭제할 내부고객그룹을 ","C002");
  77. } else {
  78. model.copyNode( "/root/send/innrgrupattr", "/root/main/innrgrupattr" );
  79. submit("TXCMZ00302");
  80. fGetInnrgrup();
  81. }
  82. }
  83. function fInitInnrGrup() {
  84. model.setValue("/root/main/innrgrupattr/savemode","I");
  85. model.setValue("/root/main/innrgrupattr/innrgrupid","")
  86. model.setValue("/root/main/innrgrupattr/innrgrupnm","")
  87. model.setValue("/root/main/innrgrupattr/publyn","N")
  88. model.setValue("/root/main/innrgrupattr/cretuserid","")
  89. model.refresh();
  90. }
  91. function fGetInnrGrupAttr() {
  92. var row = grd_innrgrup.row;
  93. // 선택한 내부고객그룹 리스트항목의 내용을 뿌려준다.
  94. var userid = getUserId();
  95. var innrgrupid = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("innrgrupid"));
  96. model.setValue("/root/main/innrgrupattr/innrgrupid",innrgrupid);
  97. var innrgrupnm = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("innrgrupnm"));
  98. model.setValue("/root/main/innrgrupattr/innrgrupnm",innrgrupnm);
  99. var publyn = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("publyn"));
  100. model.setValue("/root/main/innrgrupattr/publyn",publyn);
  101. var cretuserid = grd_innrgrup.valueMatrix(row, grd_innrgrup.colRef("cretuserid"));
  102. model.setValue("/root/main/innrgrupattr/cretuserid",cretuserid);
  103. // 수정모드로 표시
  104. model.setValue("/root/main/innrgrupattr/savemode","U");
  105. model.refresh();
  106. }
  107. ]]>
  108. </script>
  109. </model>
  110. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  112. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  114. </xhtml:head>
  115. <xhtml:body pagewidth="521" pageheight="375" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  116. <group id="grp_tmpl" scroll="auto" style="left:0px; top:0px; width:501px; height:338px; ">
  117. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">내부고객그룹리스트</caption>
  118. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  119. <datagrid id="grd_innrgrup" nodeset="/root/main/innrgruplist" caption="내부그룹ID^내부그룹명^공유여부^" colwidth="100, 250, 100," dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" tooltip="true" style="left:0px; top:30px; width:499px; height:204px; ">
  120. <col ref="innrgrupid"/>
  121. <col ref="innrgrupnm"/>
  122. <col ref="publyn"/>
  123. <col ref="cretuserid" visibility="hidden"/>
  124. <script type="javascript" ev:event="ondblclick">
  125. <![CDATA[
  126. if( grd_innrgrup.isCell(event.target) && grd_innrgrup.row >= grd_innrgrup.fixedRows ){
  127. fGetInnrGrupAttr(); //내부고객그룹 정보조회
  128. }
  129. ]]>
  130. </script>
  131. </datagrid>
  132. <caption id="caption2" class="tit_2" style="left:5px; top:244px; width:130px; height:13px; ">내부고객그룹정보</caption>
  133. <button id="btn_init" class="btn5_letter3" style="left:332px; top:238px; width:53px; height:19px; ">
  134. <caption>초기화</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. fInitInnrGrup(); // 내부고객그룹초기화
  138. ]]>
  139. </script>
  140. </button>
  141. <button id="btn_del" class="btn5_letter2" style="left:388px; top:238px; width:42px; height:19px; ">
  142. <caption>삭제</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. fDelInnrGrup(); // 내부고객그룹삭제
  146. ]]>
  147. </script>
  148. </button>
  149. <button id="btn_save" class="btn5_letter4" style="left:433px; top:238px; width:64px; height:19px; ">
  150. <caption>그룹저장</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. fSaveInnrGrup(); // 내부고객그룹저장
  154. ]]>
  155. </script>
  156. </button>
  157. <line id="line4" class="line_1" style="x1:0px; y1:259px; x2:500px; y2:259px; "/>
  158. <line id="line24" class="line_2" style="x1:0px; y1:286px; x2:499px; y2:286px; "/>
  159. <caption id="cap_innrgrupnm" class="cell_1" style="left:0px; top:263px; width:105px; height:23px; text-align:center; vertical-align:middle; ">내부고객그룹명</caption>
  160. <input id="ipt_innrgrupnm" ref="/root/main/innrgrupattr/innrgrupnm" class="input_essential" navindex="1" style="left:108px; top:264px; width:187px; height:19px; "/>
  161. <line id="line6" class="line_2" style="x1:0px; y1:311px; x2:499px; y2:311px; "/>
  162. <caption id="cap_publyn" class="cell_1" style="left:0px; top:288px; width:105px; height:23px; text-align:center; vertical-align:middle; ">공유여부</caption>
  163. <select1 id="rdo_useyn" ref="/root/main/innrgrupattr/publyn" overflow="visible" appearance="full" cellspacing="15" cols="2" style="left:108px; top:289px; width:112px; height:19px; background-color:transparent; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>예</label>
  167. <value>Y</value>
  168. </item>
  169. <item>
  170. <label>아니오</label>
  171. <value>N</value>
  172. </item>
  173. </choices>
  174. </select1>
  175. <caption id="caption3" class="cell_1" style="left:0px; top:313px; width:105px; height:23px; text-align:center; vertical-align:middle; ">생성자ID</caption>
  176. <line id="line2" class="line_3" style="x1:0px; y1:336px; x2:499px; y2:336px; "/>
  177. <output id="opt_cretuserid" ref="/root/main/innrgrupattr/cretuserid" class="output_fix" navindex="1" style="left:108px; top:314px; width:187px; height:19px; "/>
  178. <caption id="output1" style="left:225px; top:290px; width:172px; height:20px; ">(동일 근무지 부서내 공유 여부)</caption>
  179. </group>
  180. <group id="grp_btn" scroll="auto" style="left:0px; top:338px; width:501px; height:27px; ">
  181. <button id="btn_cancel" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
  182. <caption>닫기</caption>
  183. <close ev:event="DOMActivate"/>
  184. </button>
  185. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
  186. </group>
  187. </xhtml:body>
  188. </xhtml:html>