SMANS00900_신규인사발령현황.xrw 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. <item>
  12. <emplno/>
  13. <name/>
  14. <dutplcedeptnm/>
  15. <fstappntdd/>
  16. <ojobgradcd/>
  17. <useflag/>
  18. </item>
  19. </list>
  20. </main>
  21. <send>
  22. <fromdd/>
  23. <todd/>
  24. <globalinstance>
  25. <instance1/>
  26. </globalinstance>
  27. </send>
  28. <hidden/>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  33. <script type="javascript" ev:event="xforms-ready">
  34. <![CDATA[
  35. //var fromdd = getCurrentDate().toDate().getAddDate(-1, "D").getDateFormat("YYYYMMDD");
  36. //var todd = getCurrentDate().substr(0,6) + fromdd.toDate().getMonthDay();
  37. var fromdd = getCurrentDate(); // 적용일자 현재일자 셋팅
  38. var todd = getCurrentDate(); // 적용일자 현재일자 셋팅
  39. model.removenode("/root/main/list/item");
  40. model.setValue("/root/send/fromdd", fromdd);
  41. model.setValue("/root/send/todd", todd);
  42. model.refresh();
  43. ]]>
  44. </script>
  45. <submission id="TRANS00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  46. </model>
  47. </xhtml:head>
  48. <xhtml:body pagewidth="790" pageheight="750" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  49. <group id="grp_tle" style="left:0px; top:0px; width:730px; height:13px; ">
  50. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">신규 인사발령 현황</caption>
  51. </group>
  52. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:770px; height:717px; ">
  53. <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">기간별 신규 직원 리스트</caption>
  54. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:725px; y2:65px; "/>
  55. <group id="grp_sea" style="left:0px; top:10px; width:770px; height:30px; vertical-align:top; ">
  56. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:735px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  57. <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
  58. <line id="line13" class="line_4" style="x1:665px; y1:4px; x2:665px; y2:26px; "/>
  59. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:675px; top:4px; width:56px; height:22px; ">
  60. <caption>조회</caption>
  61. <script type="javascript" ev:event="DOMActivate">
  62. <![CDATA[
  63. if (model.getValue("/root/send/fromdd") == ""){
  64. messageBox("조회시작일자는", "I003");
  65. model.setFocus("ipt_fromdd");
  66. return;
  67. }
  68. if (model.getValue("/root/send/todd") == ""){
  69. messageBox("조회종료일자는", "I003");
  70. model.setFocus("ipt_todd");
  71. return;
  72. }
  73. if (isValidDateTime(model.getValue("/root/send/fromdd"), "YYYYMMDD") == false){
  74. messageBox("조회 시작일자의 형식이", "E016");
  75. model.setFocus("ipt_fromdd");
  76. return;
  77. }
  78. if (isValidDateTime(model.getValue("/root/send/todd"), "YYYYMMDD") == false){
  79. messageBox("조회 종료일자의 형식이", "E016");
  80. model.setFocus("ipt_todd");
  81. return;
  82. }
  83. if (model.getValue("/root/send/fromdd") > model.getValue("/root/send/todd")){
  84. messageBox("조회 시작일자는 종료일자 보다 클 수", "I004");
  85. model.setFocus("ipt_fromdd");
  86. return;
  87. }
  88. submit("TRANS00901");
  89. ]]>
  90. </script>
  91. </button>
  92. <input id="ipt_todd" ref="/root/send/todd" class="input_default" navindex="2" inputtype="date" style="left:207px; top:6px; width:85px; height:19px; "/>
  93. <caption id="caption5" class="search_no_b" style="left:192px; top:7px; width:12px; height:17px; ">~</caption>
  94. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" navindex="1" inputtype="date" style="left:106px; top:6px; width:85px; height:19px; "/>
  95. </group>
  96. <button id="btn_excsave" class="btn2_letter4" style="left:660px; top:45px; width:64px; height:19px; ">
  97. <caption>엑셀저장</caption>
  98. <script type="javascript" ev:event="DOMActivate">
  99. <![CDATA[
  100. var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  101. if (fileName != "") {
  102. grd_insalist.saveExcel(fileName);
  103. }
  104. ]]>
  105. </script>
  106. </button>
  107. <datagrid id="grd_insalist" nodeset="/root/main/list/item" class="datagrid2" caption="사번^성명^소속^발령일^직급^사용" colsep="^" colwidth="70, 100, 320, 100, 100, 5" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:71px; width:720px; height:624px; ">
  108. <col disabled="true" ref="emplno" style="text-align:center; "/>
  109. <col disabled="true" ref="name" style="text-align:center; "/>
  110. <col disabled="true" ref="dutplcedeptnm" style="text-align:center; "/>
  111. <col disabled="true" ref="fstappntdd" format="yyyy-mm-dd" style="text-align:center; "/>
  112. <col disabled="true" ref="ojobgradnm" style="text-align:center; "/>
  113. <col disabled="true" ref="useflag"/>
  114. </datagrid>
  115. </group>
  116. </xhtml:body>
  117. </xhtml:html>