talentSubsidyStrategyList.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  4. <div class="easyui-layout" fit="true">
  5. <div region="center" style="padding:0px;border:0px">
  6. <t:datagrid name="talentSubsidyStrategyList" checkbox="false" pagination="true" fitColumns="true" title="公司级人才津贴设定" actionUrl="talentSubsidyStrategyController.do?datagrid" idField="id" fit="true" queryMode="group">
  7. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
  8. <t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
  9. <t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  10. <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  11. <t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
  12. <t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
  13. <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
  14. <t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
  15. <t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
  16. <t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
  17. <t:dgCol title="人才素质要素" field="factor" queryMode="single" width="120"></t:dgCol>
  18. <t:dgCol title="默认金额" field="money" queryMode="single" width="120"></t:dgCol>
  19. <t:dgCol title="说明" field="description" queryMode="single" width="120"></t:dgCol>
  20. <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="talentSubsidyStrategyController.do?goAdd" funname="add"></t:dgToolBar>
  21. <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="talentSubsidyStrategyController.do?goUpdate" funname="update"></t:dgToolBar>
  22. <t:dgToolBar title="删除" icon="icon-remove" operationCode="remove" url="talentSubsidyStrategyController.do?doBatchDel" funname="deleteItem"></t:dgToolBar>
  23. <t:dgToolBar title="查看" icon="icon-search" url="talentSubsidyStrategyController.do?goUpdate" funname="detail"></t:dgToolBar>
  24. </t:datagrid>
  25. </div>
  26. </div>
  27. <script src = "webpage/cn/com/lzt/talentsubsidy/talentSubsidyStrategyList.js"></script>
  28. <script type="text/javascript">
  29. $(document).ready(function(){
  30. });
  31. function deleteItem(title,url,gname) {
  32. gridname=gname;
  33. var ids = [];
  34. var rows = $("#"+gname).datagrid('getSelections');
  35. if (rows.length > 0) {
  36. $.dialog.setting.zIndex = getzIndex(true);
  37. $.dialog.confirm('你确定永久删除该数据吗?', function(r) {
  38. if (r) {
  39. for ( var i = 0; i < rows.length; i++) {
  40. if(rows[i].id.indexOf("default") != -1){
  41. tip("不能删除系统预置数据");
  42. return;
  43. }
  44. ids.push(rows[i].id);
  45. }
  46. $.ajax({
  47. url : url,
  48. type : 'post',
  49. data : {
  50. ids : ids.join(',')
  51. },
  52. cache : false,
  53. success : function(data) {
  54. var d = data; // ------ $.parseJSON(data);
  55. if (d.success) {
  56. var msg = d.msg;
  57. tip(msg);
  58. reloadTable();
  59. $("#"+gname).datagrid('unselectAll');
  60. ids='';
  61. }
  62. }
  63. });
  64. }
  65. });
  66. } else {
  67. tip("请选择需要删除的数据");
  68. }
  69. }
  70. //导入
  71. function ImportXls() {
  72. openuploadwin('Excel导入', 'talentSubsidyStrategyController.do?upload', "talentSubsidyStrategyList");
  73. }
  74. //导出
  75. function ExportXls() {
  76. JeecgExcelExport("talentSubsidyStrategyController.do?exportXls","talentSubsidyStrategyList");
  77. }
  78. //模板下载
  79. function ExportXlsByT() {
  80. JeecgExcelExport("talentSubsidyStrategyController.do?exportXlsByT","talentSubsidyStrategyList");
  81. }
  82. </script>