SMRPD20001_근태일자등록.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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>SMRPD20001_근태일자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dutdate>
  11. <dutdatelist/>
  12. </dutdate>
  13. </main>
  14. <send>
  15. <dutdate>
  16. <instcd/>
  17. <baseym/>
  18. </dutdate>
  19. <save>
  20. <dutdatelist/>
  21. </save>
  22. </send>
  23. <init/>
  24. <hidden>
  25. <temp/>
  26. </hidden>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. misfGridInit(grd_dutdatelist);
  32. misfMsterDetailSet(grd_dutdatelist, null, "TRRPD20001" ,"Y");
  33. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  34. misfComboComCdListMulti("P0033","grd_dutdatelist.dayflag");
  35. misfGetAndSetUserInfo();
  36. model.setValue("/root/send/dutdate/instcd", getUserInfo("dutplceinstcd"));
  37. model.setValue("/root/send/dutdate/baseym", getCurrentDate().substr(0, 6));
  38. if(getUserInfo("dutplceinstcd") == "001" && DUT_UNIT_CD == "4020500000")
  39. {
  40. cmb_instcd.disabled = false;
  41. }
  42. else
  43. {
  44. cmb_instcd.disabled = true;
  45. }
  46. btn_search.dispatch("DOMActivate");
  47. ]]>
  48. </script>
  49. <script type="javascript">
  50. <![CDATA[
  51. function fInit()
  52. {
  53. misfGridInit(grd_dutdatelist);
  54. misfMsterDetailSet(grd_dutdatelist, null, "TRRPD20001" ,"Y");
  55. misfComboComCdListMulti("Z0007,P0033","cmb_instcd,grd_dutdatelist.dayflag");
  56. misfGetAndSetUserInfo();
  57. model.setValue("/root/send/dutdate/instcd", getUserInfo("dutplceinstcd"));
  58. model.setValue("/root/send/dutdate/baseym", getCurrentDate().substr(0, 6));
  59. if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  60. {
  61. cmb_instcd.disabled = false;
  62. }
  63. else
  64. {
  65. cmb_instcd.disabled = true;
  66. }
  67. btn_search.dispatch("DOMActivate");
  68. }
  69. ]]>
  70. </script>
  71. <submission id="TRRPD20001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdate" resultref="/root/main/dutdate"/>
  72. <submission id="TXRPD20001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  78. </xhtml:head>
  79. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  80. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  81. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">근태일자등록</caption>
  82. </group>
  83. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  84. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  85. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  86. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  87. <caption>조회</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. misfMsterDetailRetrieve();
  91. for(var i=1; i<grd_dutdatelist.rows; i++)
  92. {
  93. if(grd_dutdatelist.valueMatrix(i, grd_dutdatelist.colRef("holiflag")) == "0")
  94. {
  95. grd_dutdatelist.rowStyle(i, "data", "color") = "#FF0000";
  96. }
  97. else if(grd_dutdatelist.valueMatrix(i, grd_dutdatelist.colRef("holiflag")) == "4")
  98. {
  99. grd_dutdatelist.rowStyle(i, "data", "color") = "#0000FF";
  100. }
  101. else
  102. {
  103. grd_dutdatelist.rowStyle(i, "data", "color") = "#000000";
  104. }
  105. }
  106. ]]>
  107. </script>
  108. </button>
  109. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:8px; x2:1110px; y2:30px; border-left-style:solid; "/>
  110. <caption id="caption1" class="search_name" style="left:308px; top:9px; width:73px; height:17px; ">기준월 :</caption>
  111. <input id="ipt_baseym" ref="/root/send/dutdate/baseym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:385px; top:8px; width:130px; height:19px; text-align:center; ">
  112. <script type="javascript" ev:event="xforms-value-changed">
  113. <![CDATA[
  114. btn_search.dispatch("DOMActivate");
  115. ]]>
  116. </script>
  117. </input>
  118. <select1 id="cmb_instcd" ref="/root/send/dutdate/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:105px; top:8px; width:155px; height:19px; ">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. <script type="javascript" ev:event="xforms-value-changed">
  126. <![CDATA[
  127. btn_search.dispatch("DOMActivate");
  128. ]]>
  129. </script>
  130. </select1>
  131. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
  132. </group>
  133. <datagrid id="grd_dutdatelist" nodeset="/root/main/dutdate/dutdatelist" caption="기관코드^기준일자^휴일구분^휴일명^요일구분^명절여부^반휴여부^비고^기관코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시|기관코드^기준일자^휴일구분^휴일명^요일구분^명절여부^반휴여부^비고^기관코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="0, 120, 130, 150, 120, 75, 75, 501, 73, 80, 154, 88" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:665px; ">
  134. <col ref="instcd" visibility="hidden"/>
  135. <col ref="basedd" type="inputdate" style="text-align:center; "/>
  136. <col ref="holiflag" type="combo" style="text-align:center; ">
  137. <choices>
  138. <item>
  139. <label>평일</label>
  140. <value>8</value>
  141. </item>
  142. <item>
  143. <label>토요일</label>
  144. <value>4</value>
  145. </item>
  146. <item>
  147. <label>공휴일</label>
  148. <value>0</value>
  149. </item>
  150. </choices>
  151. </col>
  152. <col ref="holinm" type="input"/>
  153. <col ref="dayflag" type="combo" style="text-align:center; ">
  154. <choices>
  155. <itemset>
  156. <label/>
  157. <value/>
  158. </itemset>
  159. </choices>
  160. </col>
  161. <col checkvalue="Y,N" ref="natiholiyn" type="checkbox"/>
  162. <col checkvalue="Y,N" ref="halfholiyn" type="checkbox"/>
  163. <col ref="cmt" type="input"/>
  164. <col ref="fstrgstrid" visibility="hidden"/>
  165. <col ref="fstrgstdt" visibility="hidden"/>
  166. <col ref="lastupdtrid" visibility="hidden"/>
  167. <col ref="lastupdtdt" visibility="hidden"/>
  168. <script type="javascript" ev:event="xforms-value-changed">
  169. <![CDATA[
  170. if(grd_dutdatelist.col == grd_dutdatelist.colRef("holiflag"))
  171. {
  172. if(grd_dutdatelist.valueMatrix(grd_dutdatelist.row, grd_dutdatelist.colRef("holiflag")) == "0")
  173. {
  174. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#FF0000";
  175. }
  176. else if(grd_dutdatelist.valueMatrix(grd_dutdatelist.row, grd_dutdatelist.colRef("holiflag")) == "4")
  177. {
  178. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#0000FF";
  179. }
  180. else
  181. {
  182. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#000000";
  183. }
  184. }
  185. ]]>
  186. </script>
  187. </datagrid>
  188. <line id="line7" class="line_1" style="left:0; x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  189. <caption id="caption25" class="tit_2" style="left:5px; top:55px; width:151px; height:14px; ">근태일자 List</caption>
  190. <button id="btn_grdadddutdatelist" class="btn2_letter3" style="left:1020px; top:49px; width:53px; height:19px; ">
  191. <caption>행추가</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. misfGridIUD(grd_dutdatelist, "A");
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="btn_savedutdatelistexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  199. <caption>엑셀저장</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  203. if (fileName != "") {
  204. grd_dutdatelist.saveExcel(fileName);
  205. }
  206. ]]>
  207. </script>
  208. </button>
  209. <button id="btn_grddeldutdatelist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
  210. <caption>행삭제</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. misfGridIUD(grd_dutdatelist, "D");
  214. ]]>
  215. </script>
  216. </button>
  217. </group>
  218. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  219. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  220. <caption>저장</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. misfSave("TXRPD20001");
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="btn_init" class="btn4_letter3" style="left:1124px; top:3px; width:68px; height:22px; ">
  228. <caption>초기화</caption>
  229. </button>
  230. <line id="line75" class="line_6" style="x1:0px; y1:24px; x2:1195px; y2:24px; "/>
  231. </group>
  232. </xhtml:body>
  233. </xhtml:html>