SMAHB01200_근무자관리.xrw 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. <dutplst>
  11. <item>
  12. <seqno/>
  13. <basecd/>
  14. <basenm/>
  15. <remfact/>
  16. <deptcd/>
  17. <orgbasecd/>
  18. </item>
  19. </dutplst>
  20. </main>
  21. <send>
  22. <basecd/>
  23. <savedutp/>
  24. <srchinstcd/>
  25. </send>
  26. <init>
  27. <deptcd/>
  28. </init>
  29. <hidden>
  30. </hidden>
  31. </root>
  32. </instance>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. fSetSuppDeptcd();
  36. submit("TRAHB01201");
  37. ]]>
  38. </script>
  39. <script type="javascript">
  40. <![CDATA[
  41. function fSetSuppDeptcd() {
  42. var dutplcecd = getUserInfo("dutplcecd");
  43. //var selectplcecd = getScreenPrestDeptCd();
  44. model.setValue("/root/init/deptcd" , dutplcecd);
  45. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd"));
  46. }
  47. function fSaveExer() {
  48. var save = getGridUpdateData(grd_execrlst);
  49. model.setValue("/root/send/savedutp" , save);
  50. submit("TXAHB01201");
  51. }
  52. ]]>
  53. </script>
  54. <submission id="TXAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
  55. <submission id="TRAHB01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutplst"/>
  56. </model>
  57. </xhtml:head>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  62. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  63. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  64. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  65. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  66. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  67. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  68. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  69. <caption>조회</caption>
  70. <script type="javascript" ev:event="DOMActivate">
  71. <![CDATA[
  72. submit("TRAHB01201");
  73. ]]>
  74. </script>
  75. </button>
  76. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:112px; height:17px; ">실시자코드 :</caption>
  77. <button id="button61" class="icon_search" style="left:270px; top:9px; width:16px; height:16px; ">
  78. <caption/>
  79. </button>
  80. <input id="ipt_basecd" ref="/root/send/basecd" class="input_search" style="left:130px; top:8px; width:135px; height:19px; ">
  81. <script type="javascript" ev:event="onkeydown">
  82. <![CDATA[
  83. inputEnterKey("btn_sea","DOMActivate");
  84. ]]>
  85. </script>
  86. </input>
  87. </group>
  88. <button id="btn_gedadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  89. <caption>행추가</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. grd_execrlst.addRow();
  93. var addRow = grd_execrlst.rows -1 ;
  94. grd_execrlst.valueMatrix(addRow , grd_execrlst.colRef("deptcd")) = model.getValue("/root/init/deptcd");
  95. ]]>
  96. </script>
  97. </button>
  98. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
  99. <caption>행삭제</caption>
  100. <script type="javascript" ev:event="DOMActivate">
  101. <![CDATA[
  102. var row = grd_execrlst.row;
  103. var rowStat = grd_execrlst.rowStatus(row);
  104. if(rowStat == 1 || rowStat == 3) {
  105. grd_execrlst.deleteRow(row);
  106. }else {
  107. grd_execrlst.rowStatus(row) = 4;
  108. }
  109. ]]>
  110. </script>
  111. </button>
  112. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:14px; ">실시자관리</caption>
  113. <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
  114. <datagrid id="grd_execrlst" nodeset="/root/main/dutplst/item" caption="순번 ^사번^성명^비고^부서코드^원본사원번호^basecdflag^basesuppdeptcd" colsep="^" colwidth="71, 97, 139, 858, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1191px; height:650px; ">
  115. <col ref="seqno" type="input"/>
  116. <col ref="basecd" type="input" maxlength="12" _chartype="upper" _key="true"/>
  117. <col ref="basenm" type="input"/>
  118. <col ref="remfact" type="input"/>
  119. <col ref="deptcd" visibility="hidden"/>
  120. <col ref="orgbasecd" visibility="hidden"/>
  121. <script type="javascript" ev:event="xforms-value-changed">
  122. <![CDATA[
  123. var col = grd_execrlst.col;
  124. var row = grd_execrlst.row;
  125. if(col == grd_execrlst.colRef("basecd")) {
  126. var count = -1;
  127. var chkRow = 0;
  128. var baseCd = grd_execrlst.valueMatrix(row,grd_execrlst.colRef("basecd"));
  129. //선행검사 중복체크
  130. while(chkRow >= 0) {
  131. chkRow = grd_execrlst.findRow(baseCd,chkRow+1,grd_execrlst.colRef("basecd"),false,true);
  132. count++;
  133. }
  134. if(count >= 2) {
  135. messageBox("사번이 ","E006");
  136. model.resetInstanceNode(grd_execrlst.nodeset + "[" + row + "]");
  137. return;
  138. }
  139. }
  140. ]]>
  141. </script>
  142. </datagrid>
  143. </group>
  144. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  145. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  146. <caption>저장</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. fSaveExer();
  150. ]]>
  151. </script>
  152. </button>
  153. </group>
  154. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  155. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">근무자/실시자 관리</caption>
  156. </group>
  157. </xhtml:body>
  158. </xhtml:html>