SPRPC90500_인사마스타(근로소득자)HELP.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>근로소득자조회HELP</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <empllist>
  11. <emplno/>
  12. <emplnm/>
  13. <rregno/>
  14. <deptcd/>
  15. <deptnm/>
  16. <dutdeptcd/>
  17. <dutdeptnm/>
  18. <teamnm/>
  19. <unitnm/>
  20. <grupjoblnnm/>
  21. <joblnnm/>
  22. <jobkindnm/>
  23. <jobposnm/>
  24. <jobrespnm/>
  25. <dutplceinstnm/>
  26. </empllist>
  27. </main>
  28. <target/>
  29. <init>
  30. <refcond>
  31. <label>사번</label>
  32. <value>emplno</value>
  33. <label>성명</label>
  34. <value>name</value>
  35. </refcond>
  36. </init>
  37. <send>
  38. <refcond/>
  39. <name/>
  40. <emplno/>
  41. <dutplcedeptcd/>
  42. <instcd/>
  43. </send>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. model.copyNode("root/main","/root/target/validation");
  49. if(instance1.selectNodes("/root/target/defaultvalue").length > 0)
  50. {
  51. model.setValue("/root/send/dutplcedeptcd", model.getValue("/root/target/defaultvalue/dutplcedeptcd"));
  52. model.setValue("/root/send/instcd",model.getValue("/root/target/defaultvalue/instcd"));
  53. }
  54. rdo_refcond.value = "name";
  55. model.setFocus("ipt_refcond");
  56. model.refresh();
  57. for(var i = grd_empllist.fixedRows ; i < grd_empllist.rows ; i++)
  58. {
  59. if(grd_empllist.valueMatrix(i, grd_empllist.colRef("retireyn")) == "Y")
  60. {
  61. grd_empllist.rowStyle(i, "all", "background-color") = "#999999";
  62. }
  63. else
  64. {
  65. grd_empllist.rowStyle(i, "all", "background-color") = "#ffffff";
  66. }
  67. }
  68. ]]>
  69. </script>
  70. <submission id="TRRPC90202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  71. </model>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="1040" pageheight="560" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  78. <group id="group3" scroll="auto" style="left:8px; top:0px; width:1000px; height:522px; ">
  79. <group id="group2" style="left:0px; top:5px; width:1000px; height:35; ">
  80. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1000px; height:35; "/>
  81. <input id="ipt_refcond" ref="/root/send/name" class="input_s_essential" imemode="hangul" style="left:252px; top:8px; width:135px; height:19px; ">
  82. <script type="javascript" ev:event="onkeyup">
  83. <![CDATA[
  84. inputEnterKey("btn_search", "DOMActivate");
  85. ]]>
  86. </script>
  87. </input>
  88. <button id="btn_search" class="btn1_letter2" style="left:929px; top:7px; width:56px; height:22px; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. if(ipt_refcond.value != null && ipt_refcond.value != "")
  93. {
  94. if(rdo_refcond.value == "name") {
  95. model.setValue("/root/send/name",ipt_refcond.label);
  96. model.setValue("/root/send/emplno", "");
  97. }
  98. else {
  99. model.setValue("/root/send/emplno",ipt_refcond.label);
  100. model.setValue("/root/send/name", "");
  101. }
  102. submit("TRRPC90202");
  103. for(var i = grd_empllist.fixedRows ; i < grd_empllist.rows ; i++)
  104. {
  105. if(grd_empllist.valueMatrix(i, grd_empllist.colRef("retireyn")) == "Y")
  106. {
  107. grd_empllist.rowStyle(i, "all", "background-color") = "#999999";
  108. }
  109. else
  110. {
  111. grd_empllist.rowStyle(i, "all", "background-color") = "#ffffff";
  112. }
  113. }
  114. model.refresh();
  115. }
  116. else
  117. {
  118. messageBox("조회조건을 ","C001");
  119. return;
  120. }
  121. ]]>
  122. </script>
  123. </button>
  124. <line id="line13" class="line_4" style="x1:914px; y1:4px; x2:914px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  125. <caption id="caption2" class="search_name" style="left:166px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
  126. <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" overflow="visible" appearance="full" cols="2" style="left:15; top:9; width:125px; height:20px; border-style:solid; ">
  127. <choices>
  128. <itemset nodeset="/root/init/refcond">
  129. <label ref="label"/>
  130. <value ref="value"/>
  131. </itemset>
  132. </choices>
  133. <script type="javascript" ev:event="xforms-select">
  134. <![CDATA[
  135. if(rdo_refcond.value == "name") {
  136. ipt_refcond.attribute("imemode") = "hangul";
  137. }
  138. else if (rdo_refcond.value == "emplno") {
  139. ipt_refcond.attribute("imemode") = "disabled";
  140. }
  141. else {
  142. ipt_refcond.attribute("imemode") = "disabled";
  143. }
  144. model.setFocus("ipt_refcond");
  145. ]]>
  146. </script>
  147. </select1>
  148. <caption id="caption3" style="left:405px; top:10px; width:490px; height:20px; font-weight:bold; color:#0000ff; ">바탕색이 회색인 것은 퇴직자를 의미합니다.</caption>
  149. </group>
  150. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:95px; height:13px; ">인사정보</caption>
  151. <line id="line1" class="line_1" style="x1:0px; y1:64px; x2:1000px; y2:64px; "/>
  152. <datagrid id="grd_empllist" nodeset="/root/main/empllist" class="grd_empllist" caption="사원번호^성명^주민번호^소속부서^소속부서명^근무부서^근무부서명^팀^유닛^직군^직열^직종^직위^직책^근무기관명^퇴사여부" colsep="^" colwidth="96, 88, 120, 80, 100, 80, 100, 90, 84, 79, 81, 100, 85, 79, 100, 0" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:69px; width:1000px; height:448px; ">
  153. <col ref="emplno"/>
  154. <col ref="emplnm"/>
  155. <col ref="rregno" visibility="hidden"/>
  156. <col ref="deptcd"/>
  157. <col ref="deptnm"/>
  158. <col ref="dutdeptcd"/>
  159. <col ref="dutdeptnm"/>
  160. <col ref="teamnm"/>
  161. <col ref="unitnm"/>
  162. <col ref="grupjoblnnm"/>
  163. <col ref="joblnnm"/>
  164. <col ref="jobkindnm"/>
  165. <col ref="jobposnm"/>
  166. <col ref="jobrespnm"/>
  167. <col ref="dutplceinstnm"/>
  168. <col ref="retireyn" visibility="hidden"/>
  169. <col ref="payinst" visibility="hidden"/>
  170. <script type="javascript" ev:event="ondblclick">
  171. <![CDATA[
  172. if( grd_empllist.isCell(event.target) && grd_empllist.row >= grd_empllist.fixedRows )
  173. {
  174. btn_confirm.dispatch("DOMActivate");
  175. }
  176. ]]>
  177. </script>
  178. <script type="javascript" ev:event="onaftersort">
  179. <![CDATA[
  180. grd_empllist.gridToInstance();
  181. ]]>
  182. </script>
  183. </datagrid>
  184. </group>
  185. <group id="group1" scroll="auto" style="left:8px; top:521px; width:1000px; height:27px; ">
  186. <button id="btn_confirm" class="btn4_letter2" style="left:886px; top:5px; width:56px; height:22px; ">
  187. <caption>확인</caption>
  188. <script type="javascript" ev:event="DOMActivate">
  189. <![CDATA[
  190. if(grd_empllist.valueMatrix(grd_empllist.row, grd_empllist.colRef("payinst")) == "")
  191. {
  192. messageBox("급여기관이 없습니다. 근로소득을 지급할 수 없습니다..","I000");
  193. return false;
  194. }
  195. if(grd_empllist.valueMatrix(grd_empllist.row, grd_empllist.colRef("retireyn")) == "Y")
  196. {
  197. if(messageBox("퇴직자 입니다. 선택 하시겠습니까?","Q000") != "6") {return false;}
  198. }
  199. misfPopUpListReturn(grd_empllist);
  200. ]]>
  201. </script>
  202. </button>
  203. <button id="btn_cancel" class="btn4_letter2" style="left:944px; top:5px; width:56px; height:22px; ">
  204. <caption>취소</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. misfPopUpListCancel();
  208. ]]>
  209. </script>
  210. </button>
  211. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1000; y2:0px; "/>
  212. </group>
  213. </xhtml:body>
  214. </xhtml:html>