| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <link rel="stylesheet" type="text/css" href="css/commoncss.css" />
- <style>
- .seachdiv {
- padding: 15px 30px;
- background-color: #ffffff;
- box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
- border: solid 1px #dcdcdc;
- margin: 10px 10px 0px 10px;
- margin-bottom: 1px;
- }
- </style>
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding: 0px; border: 0px">
- <t:datagrid name="tBusUserTechangList" fitColumns="true" title="专业特长"
- actionUrl="tBusUserTechangController.do?datagrid" idField="id"
- fit="true" queryMode="group">
- <t:dgCol title="主键" field="id" hidden="true" queryMode="single"
- width="120"></t:dgCol>
- <t:dgCol title="创建人名称" field="createName" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建人登录名称" field="createBy" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd"
- hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人名称" field="updateName" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新人登录名称" field="updateBy" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd"
- hidden="true" queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="所属部门" field="sysOrgCode" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="所属公司" field="sysCompanyCode" hidden="true"
- queryMode="single" width="120"></t:dgCol>
- <t:dgCol title="流程状态" field="bpmStatus" queryMode="single" hidden="true"
- dictionary="bpm_status" width="120"></t:dgCol>
- <t:dgCol title="专业特长" field="techangType" queryMode="single"
- dictionary="techangType" width="120"></t:dgCol>
- <t:dgCol title="用户" field="userId" hidden="true" queryMode="single"
- width="120"></t:dgCol>
- <t:dgCol title="说明" field="description" queryMode="single"
- width="520"></t:dgCol>
- <t:dgCol title="操作" field="opt"></t:dgCol>
- <t:dgDelOpt title="删除" url="tBusUserTechangController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="tBusUserTechangController.do?goAdd&userId=${userId}" funname="add"></t:dgToolBar>
- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="tBusUserTechangController.do?goUpdate" funname="update"></t:dgToolBar>
- <%-- <t:dgToolBar title="删除" icon="icon-remove" operationCode="remove" --%>
- <%-- url="tBusUserTechangController.do?doDel" funname="doDel"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="查看" icon="icon-search" url="tBusUserTechangController.do?goUpdate" funname="detail"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar> --%>
- <%-- <t:dgToolBar title="模板下载" icon="icon-putout" operationCode="putout" funname="ExportXlsByT"></t:dgToolBar> --%>
- </t:datagrid>
- <input name="userid" id="userid" type="hidden" value="${userId}" />
- </div>
- </div>
- <script src="webpage/cn/com/lzt/techang/tBusUserTechangList.js"></script>
- <script type="text/javascript">
- // $(function() {
- // $("#tBusUserTechangList").datagrid({
- // onClickRow : function(rowIndex, rowData) {
- // fillData(rowData);
- // }
- // });
- // var datagrid = $("#tBusUserTechangList");
- // datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
- // $("#pinjie1").html('');
- // })
- function doDel() {
- var ids = [];
- var rows = $("#tBusUserTechangList").datagrid('getSelections');
- if (rows.length > 0) {
- $.messager.confirm("确认", "确定要删除这条数据?", function(r) {
- if (r) {
- for (var i = 0; i < rows.length; i++) {
- ids.push(rows[i].id);
- }
- $.ajax({
- url : "tBusUserTechangController.do?doDel",
- type : 'post',
- data : {
- ids : ids.join(',')
- },
- cache : false,
- success : function(data) {
- var d = data; // ------ $.parseJSON(data);
- if (d.success) {
- var msg = d.msg;
- tip(msg);
- $("#tBusUserTechangList").datagrid('reload');
- clearData();
- ids = '';
- } else {
- layer.alert(d.msg);
- }
- }
- });
- }
- });
- } else {
- layer.alert("请选择需要删除的数据");
- }
- }
- function fillData(rowData) {
- //清空表单
- $("#formobj").form('clear');
- $("#userid").val($("#useridTemp").val());
- //填充数据
- for ( var d in rowData) {
- $("#" + d).val(rowData[d]);
- }
- }
- //保存数据
- function saveData() {
- console.log($("#tBusUserTechangList").datagrid());
- $("#btnsub").click();
- }
- function callback(data) {
- if (data.success) {
- clearData();
- $("#tBusUserTechangList").datagrid('reload');
- top.tip(data.msg);
- } else {
- layer.alert(data.msg);
- }
- }
- function cancelEdit() {
- var rowData = $("#tBusUserTechangList").datagrid("getSelected");
- if (rowData != null) {
- fillData(rowData);
- } else {
- clearData();
- }
- }
- function clearData() {
- var rowData = {};
- fillData(rowData);
- $("#tBusUserTechangList").datagrid('clearChecked');
- $("#tBusUserTechangList").datagrid('unselectAll');
- }
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'tBusUserTechangController.do?upload',
- "tBusUserTechangList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("tBusUserTechangController.do?exportXls",
- "tBusUserTechangList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("tBusUserTechangController.do?exportXlsByT",
- "tBusUserTechangList");
- }
- // //新增
- // function add(title, url, id) {
- // window.location.href = url
- // }
- // //修改
- // function update(title, url, id) {
- // updateNotCreateWin("修改", url, "tBusUserTechangList", false);
- // }
- // //查看
- // function view(title, url, id) {
- // viewNotCreateWin("查看", url, "tBusUserTechangList", false)
- // }
- </script>
|