tBusSpecialAttend-add.jsp 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>员工特殊考勤表</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script src="plug-in/layer/layer.js"></script>
  9. <script>
  10. function btn_ok(){
  11. $("#btnsub").click();
  12. }
  13. function callback(data){
  14. if(data.success){
  15. layer.alert(data.msg, function(index){
  16. window.location.href="tBusSpecialAttendController.do?list";
  17. layer.close(index);
  18. });
  19. }
  20. else{
  21. layer.alert(data.msg);
  22. }
  23. }
  24. function backOnClick(){
  25. var url = "tBusSpecialAttendController.do?list";
  26. window.location.href=url;
  27. }
  28. </script>
  29. <script type="text/javascript">
  30. //编写自定义JS代码
  31. </script>
  32. </head>
  33. <body>
  34. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="tBusSpecialAttendController.do?doAdd" tiptype="1" callback="callback">
  35. <input id="id" name="id" type="hidden" value="${tBusSpecialAttendPage.id }"/>
  36. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  37. <tr>
  38. <%--<td align="right">
  39. <label class="Validform_label">
  40. 员工:
  41. </label>
  42. </td>
  43. <td class="value">
  44. <input id="userid" name="userid" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
  45. <span class="Validform_checktip"></span>
  46. <label class="Validform_label" style="display: none;">员工</label>
  47. </td> --%>
  48. <td align="right"><label class="Validform_label"><span color="red" class="requiredIcon">*</span>员工:</label></td>
  49. <td class="value">
  50. <input id="userid" name="userid" type="hidden" value="" />
  51. <input name="realName" class="inputxt" value="" id="realName" readonly="readonly" datatype="*" />
  52. <t:choose hiddenName="userid" hiddenid="id" left="50%" width="670" height="450" url="correctionController.do?correctionSelect" name="userList1" icon="icon-select" title="选择员工" textname="realName" isclear="true" isInit="true"></t:choose>
  53. <span class="Validform_checktip"></span>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td align="right">
  58. <label class="Validform_label">
  59. 考勤方式:
  60. </label>
  61. </td>
  62. <td class="value">
  63. <t:dictSelect field="attendtype" type="radio" typeGroupCode="special_attendtype" defaultVal="1" hasLabel="false" title="考勤方式"></t:dictSelect>
  64. <span class="Validform_checktip"></span>
  65. <label class="Validform_label" style="display: none;">考勤方式</label>
  66. </td>
  67. </tr>
  68. <tr>
  69. <td height="50px" align="center" colspan="2">
  70. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  71. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
  72. <a style="margin-left:10px" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="backOnClick()">返回</a>
  73. </td>
  74. </tr>
  75. </table>
  76. </t:formvalid>
  77. </body>
  78. <script src = "webpage/cn/com/lzt/attendance/tBusSpecialAttend.js"></script>