SMRWP02500_개인별항목별급여내역비교.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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>개인별항목별급여내역비교</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <monthpaymast>
  12. <monthpaymastlist/>
  13. </monthpaymast>
  14. </list>
  15. </main>
  16. <target>
  17. <defaultvalue>
  18. <ipt_curemplno/>
  19. <ipt_curemplnm/>
  20. <cmb_SalDfrayFlag/>
  21. </defaultvalue>
  22. </target>
  23. <send>
  24. <monthpaymast>
  25. <instcd/>
  26. <saldfrayflag/>
  27. <payym/>
  28. <emplno/>
  29. <emplnm/>
  30. <payitemcd/>
  31. <payitemnm/>
  32. </monthpaymast>
  33. </send>
  34. <init/>
  35. </root>
  36. </instance>
  37. <submission id="TRRWP02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthpaymast" resultref="/root/main/list/monthpaymast"/>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. misfGridInit(grd_monthpaymastlist);
  41. /* Grid의 Mater, Detail관계 설정
  42. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  43. misfMsterDetailSet(grd_monthpaymastlist, null, "TRRWP02501" ,"N");
  44. for(licol = 0; licol < grd_monthpaymastlist.cols ; licol++)
  45. {
  46. if(grd_monthpaymastlist.colRef("emplno") != licol &&
  47. grd_monthpaymastlist.colRef("emplnm") != licol) grd_monthpaymastlist.mergecol(licol) = false;
  48. grd_monthpaymastlist.mergecells = "bycol";
  49. }
  50. /* Combo Data Setting
  51. misfComboComCdListMulti(공통코드군, Combo) */
  52. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  53. misfComboComCdListMulti("R0112","cmb_instcd");
  54. var curdate = getCurrentDate();
  55. var cvtdate = curdate.toDate("YYYYMM");
  56. model.setValue(ipt_payym.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMM"));
  57. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  58. model.setValue(ipt_emplnos.attribute("ref"), model.getValue("/root/target/defaultvalue/ipt_curemplno"));
  59. if(model.getValue(ipt_emplnos.attribute("ref")).length > 0)
  60. {
  61. model.setValue(ipt_emplnms.attribute("ref"), model.getValue("/root/target/defaultvalue/ipt_curemplnm"));
  62. model.setValue(cmb_SalDfrayFlag.attribute("ref"), model.getValue("/root/target/defaultvalue/cmb_SalDfrayFlag"));
  63. btn_search.dispatch("DOMActivate");
  64. }
  65. model.refresh();
  66. ]]>
  67. </script>
  68. </model>
  69. <script type="javascript">
  70. <![CDATA[
  71. var PAY_TARGET_NODE = "/root/main/monthpaymastdata";
  72. var PAY_SOURCE_NODE = "/root/main/monthpaymast";
  73. function fCheckRetrieveData()
  74. {
  75. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  76. {
  77. messageBox("기관코드를 " ,"C002");
  78. model.setFocus("cmb_instcd");
  79. return false;
  80. }
  81. if(model.getValue(cmb_SalDfrayFlag.attribute("ref")).length== 0 )
  82. {
  83. messageBox("급여종류를 " ,"C002");
  84. model.setFocus("cmb_SalDfrayFlag");
  85. return false;
  86. }
  87. if(model.getValue(ipt_emplnos.attribute("ref")).length== 0 &&
  88. model.getValue(ipt_payitemcd.attribute("ref")).length== 0 )
  89. {
  90. messageBox("사번이나 항목 둘중 하나는 " ,"I003");
  91. model.setFocus("ipt_emplnos");
  92. return false;
  93. }
  94. return true;
  95. }
  96. ]]>
  97. </script>
  98. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  102. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  103. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  104. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  105. </xhtml:head>
  106. <xhtml:body style="margin-left:8; margin-right:8; ">
  107. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별항목별급여내역비교</caption>
  109. </group>
  110. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  111. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  112. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  113. <caption>조회</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. //if(fCheckRetrieveData() == false)return;
  117. misfMsterDetailRetrieve();
  118. for (var i = 2; i < grd_monthpaymastlist.rows; i++) {
  119. if (grd_monthpaymastlist.valueMatrix(i, grd_monthpaymastlist.colRef("changeyn")) == "Y" ) {
  120. grd_monthpaymastlist.cellstyle("background-color", i, 3, i, 9) = "#ffff99";
  121. }
  122. else {
  123. grd_monthpaymastlist.cellstyle("background-color", i, 3, i, 9) = "#ffffff";
  124. }
  125. }
  126. ]]>
  127. </script>
  128. </button>
  129. <line id="line13" class="line_4" style="x1:1118px; y1:16px; x2:1118px; y2:38px; "/>
  130. <input id="ipt_payym" ref="/root/send/monthpaymast/payym" class="input_default" inputtype="date" format="yyyy-mm" style="left:442px; top:17px; width:79px; height:19px; text-align:center; vertical-align:middle; "/>
  131. <caption id="caption22" class="search_name" style="left:373px; top:18px; width:70px; height:17px; ">지급월:</caption>
  132. <select1 id="cmb_instcd" ref="/root/send/monthpaymast/instcd" class="combo_s_essential" appearance="minimal" style="left:61px; top:17px; width:125px; height:19px; ">
  133. <choices>
  134. <itemset>
  135. <label/>
  136. <value/>
  137. </itemset>
  138. </choices>
  139. </select1>
  140. <caption id="caption1" class="search_name" style="left:189px; top:18px; width:86px; height:17px; ">급여종류:</caption>
  141. <caption id="caption2" class="search_name" style="left:2px; top:18px; width:61px; height:17px; ">기관:</caption>
  142. <select1 id="cmb_SalDfrayFlag" ref="/root/send/monthpaymast/saldfrayflag" class="combo_s_essential" appearance="minimal" style="left:270px; top:17px; width:100px; height:19px; ">
  143. <choices>
  144. <itemset>
  145. <label/>
  146. <value/>
  147. </itemset>
  148. </choices>
  149. </select1>
  150. <caption id="caption3" class="search_name" style="left:523px; top:18px; width:63px; height:17px; ">사번 :</caption>
  151. <button id="btn_emplno" class="icon_search" style="left:676px; top:17px; width:16px; height:16px; ">
  152. <caption/>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. var recv_list = "emplno,emplnm" ;
  156. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  157. model.refresh();
  158. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  159. btn_search.dispatch("DOMActivate");
  160. }
  161. ]]>
  162. </script>
  163. </button>
  164. <input id="ipt_emplnos" ref="/root/send/monthpaymast/emplno" class="input_default" style="left:584px; top:16px; width:87px; height:19px; ">
  165. <script type="javascript" ev:event="xforms-value-changed">
  166. <![CDATA[
  167. var recv_list = "emplno,emplnm" ;
  168. rpbfValidationCheck("EMPLNO", recv_list);
  169. model.refresh();
  170. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  171. btn_search.dispatch("DOMActivate");
  172. }
  173. ]]>
  174. </script>
  175. </input>
  176. <input id="ipt_emplnms" ref="/root/send/monthpaymast/emplnm" class="input_default" style="left:695px; top:16px; width:99px; height:19px; ">
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. var recv_list = "emplno,emplnm" ;
  180. rpbfValidationCheck("EMPLNM", recv_list);
  181. model.refresh();
  182. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  183. btn_search.dispatch("DOMActivate");
  184. }
  185. ]]>
  186. </script>
  187. </input>
  188. <switch id="switch1" style="left:1px; top:45px; width:1194px; height:695px; ">
  189. <case id="case1" selected="true">
  190. <line id="line193" class="line_1" style="x1:0px; y1:19px; x2:1190px; y2:19px; "/>
  191. <datagrid id="grd_monthpaymastlist" nodeset="/root/main/list/monthpaymast/monthpaymastlist" backcoloralternate="transparent" caption="사원^사원명^급여항목명^공제^지급금액^지급금액^계산금액^계산금액|사원^사원명^급여항목명^공제^전월^현재월^전월^현재월" colsep="^" colwidth="94, 134, 242, 123, 150, 131, 139, 135, 35" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1190px; height:665px; ">
  192. <col ref="emplno" style="vertical-align:top; "/>
  193. <col ref="emplnm" style="vertical-align:top; "/>
  194. <col ref="payitemnm"/>
  195. <col ref="payeduflagnm"/>
  196. <col ref="prepayitemamt" format="(-)#,###" style="text-align:right; "/>
  197. <col ref="payitemamt" format="#,###" style="text-align:right; "/>
  198. <col ref="prepayitemcalcamt" format="#,###" style="text-align:right; "/>
  199. <col ref="payitemcalcamt" format="#,###" style="text-align:right; "/>
  200. <col ref="changeyn" visibility="hidden"/>
  201. </datagrid>
  202. <caption id="caption28" class="tit_2" style="left:5px; top:5px; width:144px; height:13px; ">급여 대상자</caption>
  203. </case>
  204. <case id="case2"/>
  205. </switch>
  206. <caption id="caption4" class="search_name" style="left:798px; top:18px; width:63px; height:17px; ">항목 :</caption>
  207. <button id="btm_payitemcd" class="icon_search" style="left:951px; top:17px; width:16px; height:16px; ">
  208. <caption/>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. var recv_list = "payitemcd,payitemnm";
  212. misfOpenPopUpList("13", ipt_payitemcd, "", recv_list, "");
  213. model.refresh();
  214. if (model.getValue(ipt_payitemnm.attribute("ref")).length > 0) {
  215. btn_search.dispatch("DOMActivate");
  216. }
  217. ]]>
  218. </script>
  219. </button>
  220. <input id="ipt_payitemcd" ref="/root/send/monthpaymast/payitemcd" class="input_default" style="left:859px; top:16px; width:87px; height:19px; ">
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. var recv_list = "payitemcd,payitemnm";
  224. var saldfrayflag = model.getValue(cmb_SalDfrayFlag.attribute("ref"));
  225. var paydeduflag = "%";
  226. rwcfValidationCheck("PAYITEM",saldfrayflag, paydeduflag, recv_list)
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </input>
  231. <input id="ipt_payitemnm" ref="/root/send/monthpaymast/payitemnm" class="input_default" style="left:970px; top:16px; width:141px; height:19px; ">
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. var recv_list = "emplno,emplnm" ;
  235. rpbfValidationCheck("EMPLNM", recv_list);
  236. model.refresh();
  237. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  238. btn_search.dispatch("DOMActivate");
  239. }
  240. ]]>
  241. </script>
  242. </input>
  243. </group>
  244. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  245. <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  246. </group>
  247. </xhtml:body>
  248. </xhtml:html>