SPCMZ00400_내부고객등록.xrw 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SPCMZ00400_내부고객등록
  4. * Summary : 내부고객드록
  5. * Programmer : 최정환
  6. * Date Written : 2007.09.06
  7. * History : 2007.09.06
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  19. <userlist/>
  20. </list>
  21. <innrgrupid/>
  22. </main>
  23. <init>
  24. <innrgruplist>
  25. <innrgrupid/>
  26. <innrgrupnm/>
  27. </innrgruplist>
  28. </init>
  29. <send>
  30. <innrgruplist/>
  31. </send>
  32. <hidden/>
  33. </root>
  34. </instance>
  35. <submission id="TRCMZ00301" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/innrgruplist"/>
  36. <submission id="TXCMZ00401" ref="/root/send/innrgruplist" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. submit("TRCMZ00301");
  40. fCheckAuth();
  41. ]]>
  42. </script>
  43. <script type="javascript">
  44. <![CDATA[
  45. // 권한체크
  46. function fCheckAuth() {
  47. if (!checkAuth("x")) {
  48. btn_save.disabled = true;
  49. }
  50. }
  51. function fSaveInnrGrup() {
  52. var innrgrupid = model.getValue("/root/main/innrgrupid");
  53. if (grd_userbaseinfo.rows > 1){
  54. if (innrgrupid == "" || innrgrupid == null) {
  55. messageBox("내부고객그룹명 ","C002");
  56. model.setFocus("cmb_msglrgcd");
  57. } else {
  58. var rtn = messageBox("아래 목록 전체에 대하여선택한 내부고객 그룹에 추가되게 됩니다.", "Q004");
  59. if(rtn == 6){
  60. var count = 0;
  61. for (i=1; i < grd_userbaseinfo.rows; i++) {
  62. count = count + 1
  63. model.makeValue("/root/main/list/userlist[" + count + "]/innrgrupid", innrgrupid);
  64. }
  65. grd_userbaseinfo.refresh();
  66. model.setValue("/root/send/innrgruplist", grd_userbaseinfo.getUpdateDataAll("i"));
  67. if ( submit("TXCMZ00401") ) {
  68. messageBox("대상 고객이 선택하신 그룹에 추가 ", "I002");
  69. }
  70. }
  71. }
  72. } else {
  73. messageBox("그룹을 추가할 대상 고객이 없습니다. 창을 닫고 고객을 조회하여 선택하신 후 다시 그룹추가를 ","C002");
  74. model.SetFocus("btn_close");
  75. }
  76. }
  77. ]]>
  78. </script>
  79. </model>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  84. </xhtml:head>
  85. <xhtml:body pagewidth="521" pageheight="375" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="grp_tmpl" scroll="auto" style="left:0px; top:0px; width:501px; height:338px; ">
  87. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">내부고객그룹리스트</caption>
  88. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:500px; y2:25px; "/>
  89. <line id="line24" class="line_2" style="x1:0px; y1:54px; x2:499px; y2:54px; "/>
  90. <caption id="cap_innrgrupnm" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">내부고객그룹명</caption>
  91. <select1 id="cmb_msglrgcd" ref="/root/main/innrgrupid" class="combo_default" appearance="minimal" style="left:108px; top:31px; width:322px; height:19px; ">
  92. <choices>
  93. <itemset nodeset="/root/init/innrgruplist">
  94. <label ref="innrgrupnm"/>
  95. <value ref="innrgrupid"/>
  96. </itemset>
  97. </choices>
  98. <script type="javascript" ev:event="xforms-select">
  99. <![CDATA[
  100. ]]>
  101. </script>
  102. </select1>
  103. <button id="btn_save" class="btn5_letter4" style="left:433px; top:31px; width:64px; height:19px; ">
  104. <caption>고객추가</caption>
  105. <script type="javascript" ev:event="DOMActivate">
  106. <![CDATA[
  107. fSaveInnrGrup(); // 내부고객그룹저장
  108. ]]>
  109. </script>
  110. </button>
  111. <datagrid id="grd_userbaseinfo" nodeset="/root/main/list/userlist" caption="사용자ID^사용자명^주민번호^소속기관명^소속기관코드^소속부서명^소속부서코드^E-Mail^휴대전화^내부그룹ID" colwidth="105, 105, 105, 105, 105, 105, 105, 105, 105, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" style="left:0px; top:55px; width:499px; height:283px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  112. <col ref="innrclntid"/>
  113. <col ref="innrclntnm"/>
  114. <col ref="rrgstno" visibility="hidden"/>
  115. <col ref="posinstnm"/>
  116. <col ref="posinstcd" visibility="hidden"/>
  117. <col ref="posdeptnm"/>
  118. <col ref="deptcd" visibility="hidden"/>
  119. <col ref="email"/>
  120. <col ref="mpphonno"/>
  121. <col ref="innrgrupid" visibility="hidden"/>
  122. </datagrid>
  123. </group>
  124. <group id="grp_btn" scroll="auto" style="left:0px; top:338px; width:501px; height:27px; ">
  125. <button id="btn_close" class="btn4_letter2" style="left:444px; top:5px; width:56px; height:22px; ">
  126. <caption>닫기</caption>
  127. <close ev:event="DOMActivate"/>
  128. </button>
  129. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:501px; y2:0px; "/>
  130. </group>
  131. </xhtml:body>
  132. </xhtml:html>