APP权限

master
erzhongxmu 2022-06-13 11:55:20 +08:00
parent 5bffd0ca51
commit b81a534e07
28 changed files with 13975 additions and 0 deletions

10024
database/wms20220613.sql Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,406 @@
package com.zzjee.uniapp.controller;
import com.zzjee.uniapp.entity.WmsAppFunctionEntity;
import com.zzjee.uniapp.service.WmsAppFunctionServiceI;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
import org.jeecgframework.core.common.model.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.entity.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
/**
* @Title: Controller
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:41:27
* @version V1.0
*
*/
@Controller
@RequestMapping("/wmsAppFunctionController")
public class WmsAppFunctionController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(WmsAppFunctionController.class);
@Autowired
private WmsAppFunctionServiceI wmsAppFunctionService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
* APP
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/uniapp/wmsAppFunctionList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(WmsAppFunctionEntity wmsAppFunction,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(WmsAppFunctionEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppFunction, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.wmsAppFunctionService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(WmsAppFunctionEntity wmsAppFunction, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
wmsAppFunction = systemService.getEntity(WmsAppFunctionEntity.class, wmsAppFunction.getId());
message = "APP功能删除成功";
try{
wmsAppFunctionService.delete(wmsAppFunction);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP功能删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "APP功能删除成功";
try{
for(String id:ids.split(",")){
WmsAppFunctionEntity wmsAppFunction = systemService.getEntity(WmsAppFunctionEntity.class,
id
);
wmsAppFunctionService.delete(wmsAppFunction);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "APP功能删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(WmsAppFunctionEntity wmsAppFunction, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP功能添加成功";
try{
wmsAppFunctionService.save(wmsAppFunction);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP功能添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(WmsAppFunctionEntity wmsAppFunction, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP功能更新成功";
WmsAppFunctionEntity t = wmsAppFunctionService.get(WmsAppFunctionEntity.class, wmsAppFunction.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(wmsAppFunction, t);
wmsAppFunctionService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "APP功能更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(WmsAppFunctionEntity wmsAppFunction, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppFunction.getId())) {
wmsAppFunction = wmsAppFunctionService.getEntity(WmsAppFunctionEntity.class, wmsAppFunction.getId());
req.setAttribute("wmsAppFunctionPage", wmsAppFunction);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppFunction-add");
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(WmsAppFunctionEntity wmsAppFunction, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppFunction.getId())) {
wmsAppFunction = wmsAppFunctionService.getEntity(WmsAppFunctionEntity.class, wmsAppFunction.getId());
req.setAttribute("wmsAppFunctionPage", wmsAppFunction);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppFunction-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","wmsAppFunctionController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(WmsAppFunctionEntity wmsAppFunction,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(WmsAppFunctionEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppFunction, request.getParameterMap());
List<WmsAppFunctionEntity> wmsAppFunctions = this.wmsAppFunctionService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"APP功能");
modelMap.put(NormalExcelConstants.CLASS,WmsAppFunctionEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP功能列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,wmsAppFunctions);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(WmsAppFunctionEntity wmsAppFunction,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"APP功能");
modelMap.put(NormalExcelConstants.CLASS,WmsAppFunctionEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP功能列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
@SuppressWarnings("unchecked")
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
@ResponseBody
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
AjaxJson j = new AjaxJson();
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
MultipartFile file = entity.getValue();// 获取上传文件对象
ImportParams params = new ImportParams();
params.setTitleRows(2);
params.setHeadRows(1);
params.setNeedSave(true);
try {
List<WmsAppFunctionEntity> listWmsAppFunctionEntitys = ExcelImportUtil.importExcel(file.getInputStream(),WmsAppFunctionEntity.class,params);
for (WmsAppFunctionEntity wmsAppFunction : listWmsAppFunctionEntitys) {
wmsAppFunctionService.save(wmsAppFunction);
}
j.setMsg("文件导入成功!");
} catch (Exception e) {
j.setMsg("文件导入失败!");
logger.error(ExceptionUtil.getExceptionMessage(e));
}finally{
try {
file.getInputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
public List<WmsAppFunctionEntity> list() {
List<WmsAppFunctionEntity> listWmsAppFunctions=wmsAppFunctionService.getList(WmsAppFunctionEntity.class);
return listWmsAppFunctions;
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<?> get(@PathVariable("id") String id) {
WmsAppFunctionEntity task = wmsAppFunctionService.get(WmsAppFunctionEntity.class, id);
if (task == null) {
return new ResponseEntity(HttpStatus.NOT_FOUND);
}
return new ResponseEntity(task, HttpStatus.OK);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> create(@RequestBody WmsAppFunctionEntity wmsAppFunction, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppFunctionEntity>> failures = validator.validate(wmsAppFunction);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppFunctionService.save(wmsAppFunction);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按照Restful风格约定创建指向新任务的url, 也可以直接返回id或对象.
String id = wmsAppFunction.getId();
URI uri = uriBuilder.path("/rest/wmsAppFunctionController/" + id).build().toUri();
HttpHeaders headers = new HttpHeaders();
headers.setLocation(uri);
return new ResponseEntity(headers, HttpStatus.CREATED);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> update(@RequestBody WmsAppFunctionEntity wmsAppFunction) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppFunctionEntity>> failures = validator.validate(wmsAppFunction);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppFunctionService.saveOrUpdate(wmsAppFunction);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
public void delete(@PathVariable("id") String id) {
wmsAppFunctionService.deleteEntityById(WmsAppFunctionEntity.class, id);
}
}

View File

@ -0,0 +1,406 @@
package com.zzjee.uniapp.controller;
import com.zzjee.uniapp.entity.WmsAppRoleEntity;
import com.zzjee.uniapp.service.WmsAppRoleServiceI;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
import org.jeecgframework.core.common.model.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.entity.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
/**
* @Title: Controller
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:40:55
* @version V1.0
*
*/
@Controller
@RequestMapping("/wmsAppRoleController")
public class WmsAppRoleController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(WmsAppRoleController.class);
@Autowired
private WmsAppRoleServiceI wmsAppRoleService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
* APP
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/uniapp/wmsAppRoleList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(WmsAppRoleEntity wmsAppRole,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(WmsAppRoleEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppRole, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.wmsAppRoleService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(WmsAppRoleEntity wmsAppRole, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
wmsAppRole = systemService.getEntity(WmsAppRoleEntity.class, wmsAppRole.getId());
message = "APP角色删除成功";
try{
wmsAppRoleService.delete(wmsAppRole);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP角色删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色删除成功";
try{
for(String id:ids.split(",")){
WmsAppRoleEntity wmsAppRole = systemService.getEntity(WmsAppRoleEntity.class,
id
);
wmsAppRoleService.delete(wmsAppRole);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "APP角色删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(WmsAppRoleEntity wmsAppRole, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色添加成功";
try{
wmsAppRoleService.save(wmsAppRole);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP角色添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(WmsAppRoleEntity wmsAppRole, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色更新成功";
WmsAppRoleEntity t = wmsAppRoleService.get(WmsAppRoleEntity.class, wmsAppRole.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(wmsAppRole, t);
wmsAppRoleService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "APP角色更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(WmsAppRoleEntity wmsAppRole, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppRole.getId())) {
wmsAppRole = wmsAppRoleService.getEntity(WmsAppRoleEntity.class, wmsAppRole.getId());
req.setAttribute("wmsAppRolePage", wmsAppRole);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppRole-add");
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(WmsAppRoleEntity wmsAppRole, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppRole.getId())) {
wmsAppRole = wmsAppRoleService.getEntity(WmsAppRoleEntity.class, wmsAppRole.getId());
req.setAttribute("wmsAppRolePage", wmsAppRole);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppRole-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","wmsAppRoleController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(WmsAppRoleEntity wmsAppRole,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(WmsAppRoleEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppRole, request.getParameterMap());
List<WmsAppRoleEntity> wmsAppRoles = this.wmsAppRoleService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"APP角色");
modelMap.put(NormalExcelConstants.CLASS,WmsAppRoleEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP角色列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,wmsAppRoles);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(WmsAppRoleEntity wmsAppRole,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"APP角色");
modelMap.put(NormalExcelConstants.CLASS,WmsAppRoleEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP角色列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
@SuppressWarnings("unchecked")
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
@ResponseBody
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
AjaxJson j = new AjaxJson();
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
MultipartFile file = entity.getValue();// 获取上传文件对象
ImportParams params = new ImportParams();
params.setTitleRows(2);
params.setHeadRows(1);
params.setNeedSave(true);
try {
List<WmsAppRoleEntity> listWmsAppRoleEntitys = ExcelImportUtil.importExcel(file.getInputStream(),WmsAppRoleEntity.class,params);
for (WmsAppRoleEntity wmsAppRole : listWmsAppRoleEntitys) {
wmsAppRoleService.save(wmsAppRole);
}
j.setMsg("文件导入成功!");
} catch (Exception e) {
j.setMsg("文件导入失败!");
logger.error(ExceptionUtil.getExceptionMessage(e));
}finally{
try {
file.getInputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
public List<WmsAppRoleEntity> list() {
List<WmsAppRoleEntity> listWmsAppRoles=wmsAppRoleService.getList(WmsAppRoleEntity.class);
return listWmsAppRoles;
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<?> get(@PathVariable("id") String id) {
WmsAppRoleEntity task = wmsAppRoleService.get(WmsAppRoleEntity.class, id);
if (task == null) {
return new ResponseEntity(HttpStatus.NOT_FOUND);
}
return new ResponseEntity(task, HttpStatus.OK);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> create(@RequestBody WmsAppRoleEntity wmsAppRole, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppRoleEntity>> failures = validator.validate(wmsAppRole);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppRoleService.save(wmsAppRole);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按照Restful风格约定创建指向新任务的url, 也可以直接返回id或对象.
String id = wmsAppRole.getId();
URI uri = uriBuilder.path("/rest/wmsAppRoleController/" + id).build().toUri();
HttpHeaders headers = new HttpHeaders();
headers.setLocation(uri);
return new ResponseEntity(headers, HttpStatus.CREATED);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> update(@RequestBody WmsAppRoleEntity wmsAppRole) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppRoleEntity>> failures = validator.validate(wmsAppRole);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppRoleService.saveOrUpdate(wmsAppRole);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
public void delete(@PathVariable("id") String id) {
wmsAppRoleService.deleteEntityById(WmsAppRoleEntity.class, id);
}
}

View File

@ -0,0 +1,406 @@
package com.zzjee.uniapp.controller;
import com.zzjee.uniapp.entity.WmsAppUserEntity;
import com.zzjee.uniapp.service.WmsAppUserServiceI;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
import org.jeecgframework.core.common.model.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.entity.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
/**
* @Title: Controller
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:41:32
* @version V1.0
*
*/
@Controller
@RequestMapping("/wmsAppUserController")
public class WmsAppUserController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(WmsAppUserController.class);
@Autowired
private WmsAppUserServiceI wmsAppUserService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
* APP
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/uniapp/wmsAppUserList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(WmsAppUserEntity wmsAppUser,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(WmsAppUserEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppUser, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.wmsAppUserService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(WmsAppUserEntity wmsAppUser, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
wmsAppUser = systemService.getEntity(WmsAppUserEntity.class, wmsAppUser.getId());
message = "APP角色分配 删除成功";
try{
wmsAppUserService.delete(wmsAppUser);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP角色分配 删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色分配 删除成功";
try{
for(String id:ids.split(",")){
WmsAppUserEntity wmsAppUser = systemService.getEntity(WmsAppUserEntity.class,
id
);
wmsAppUserService.delete(wmsAppUser);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "APP角色分配 删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(WmsAppUserEntity wmsAppUser, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色分配 添加成功";
try{
wmsAppUserService.save(wmsAppUser);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "APP角色分配 添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(WmsAppUserEntity wmsAppUser, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "APP角色分配 更新成功";
WmsAppUserEntity t = wmsAppUserService.get(WmsAppUserEntity.class, wmsAppUser.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(wmsAppUser, t);
wmsAppUserService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "APP角色分配 更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(WmsAppUserEntity wmsAppUser, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppUser.getId())) {
wmsAppUser = wmsAppUserService.getEntity(WmsAppUserEntity.class, wmsAppUser.getId());
req.setAttribute("wmsAppUserPage", wmsAppUser);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppUser-add");
}
/**
* APP
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(WmsAppUserEntity wmsAppUser, HttpServletRequest req) {
if (StringUtil.isNotEmpty(wmsAppUser.getId())) {
wmsAppUser = wmsAppUserService.getEntity(WmsAppUserEntity.class, wmsAppUser.getId());
req.setAttribute("wmsAppUserPage", wmsAppUser);
}
return new ModelAndView("com/zzjee/uniapp/wmsAppUser-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","wmsAppUserController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(WmsAppUserEntity wmsAppUser,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(WmsAppUserEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, wmsAppUser, request.getParameterMap());
List<WmsAppUserEntity> wmsAppUsers = this.wmsAppUserService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"APP角色分配 ");
modelMap.put(NormalExcelConstants.CLASS,WmsAppUserEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP角色分配 列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,wmsAppUsers);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(WmsAppUserEntity wmsAppUser,HttpServletRequest request,HttpServletResponse response
, DataGrid dataGrid,ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"APP角色分配 ");
modelMap.put(NormalExcelConstants.CLASS,WmsAppUserEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("APP角色分配 列表", "导出人:"+ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
@SuppressWarnings("unchecked")
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
@ResponseBody
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
AjaxJson j = new AjaxJson();
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
MultipartFile file = entity.getValue();// 获取上传文件对象
ImportParams params = new ImportParams();
params.setTitleRows(2);
params.setHeadRows(1);
params.setNeedSave(true);
try {
List<WmsAppUserEntity> listWmsAppUserEntitys = ExcelImportUtil.importExcel(file.getInputStream(),WmsAppUserEntity.class,params);
for (WmsAppUserEntity wmsAppUser : listWmsAppUserEntitys) {
wmsAppUserService.save(wmsAppUser);
}
j.setMsg("文件导入成功!");
} catch (Exception e) {
j.setMsg("文件导入失败!");
logger.error(ExceptionUtil.getExceptionMessage(e));
}finally{
try {
file.getInputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
public List<WmsAppUserEntity> list() {
List<WmsAppUserEntity> listWmsAppUsers=wmsAppUserService.getList(WmsAppUserEntity.class);
return listWmsAppUsers;
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<?> get(@PathVariable("id") String id) {
WmsAppUserEntity task = wmsAppUserService.get(WmsAppUserEntity.class, id);
if (task == null) {
return new ResponseEntity(HttpStatus.NOT_FOUND);
}
return new ResponseEntity(task, HttpStatus.OK);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public ResponseEntity<?> create(@RequestBody WmsAppUserEntity wmsAppUser, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppUserEntity>> failures = validator.validate(wmsAppUser);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppUserService.save(wmsAppUser);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按照Restful风格约定创建指向新任务的url, 也可以直接返回id或对象.
String id = wmsAppUser.getId();
URI uri = uriBuilder.path("/rest/wmsAppUserController/" + id).build().toUri();
HttpHeaders headers = new HttpHeaders();
headers.setLocation(uri);
return new ResponseEntity(headers, HttpStatus.CREATED);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> update(@RequestBody WmsAppUserEntity wmsAppUser) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<WmsAppUserEntity>> failures = validator.validate(wmsAppUser);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
wmsAppUserService.saveOrUpdate(wmsAppUser);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
public void delete(@PathVariable("id") String id) {
wmsAppUserService.deleteEntityById(WmsAppUserEntity.class, id);
}
}

View File

@ -0,0 +1,440 @@
package com.zzjee.uniapp.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:41:27
* @version V1.0
*
*/
@Entity
@Table(name = "wms_app_function", schema = "")
@SuppressWarnings("serial")
public class WmsAppFunctionEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人名称*/
private String createName;
/**创建人登录名称*/
private String createBy;
/**创建日期*/
private Date createDate;
/**更新人名称*/
private String updateName;
/**更新人登录名称*/
private String updateBy;
/**更新日期*/
private Date updateDate;
/**所属部门*/
private String sysOrgCode;
/**所属公司*/
private String sysCompanyCode;
/**app模块编号*/
@Excel(name="app模块编号")
private String appmodelCode;
/**app模块名称*/
@Excel(name="app模块名称")
private String appmodelName;
/**app模块排序*/
@Excel(name="app模块排序")
private String appmodelSort;
/**类型*/
@Excel(name="类型")
private String type;
/**路径*/
@Excel(name="路径")
private String route;
/**图片*/
@Excel(name="图片")
private String picture;
/**是否禁用*/
@Excel(name="是否禁用")
private String ifBind;
/**备用1*/
private String query1;
/**备用2*/
private String query2;
/**备用3*/
private String query3;
/**备用4*/
private String query4;
/**备用5*/
private String query5;
/**备用6*/
private String query6;
/**
*: java.lang.String
*@return: java.lang.String
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setId(String id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_NAME",nullable=true,length=50)
public String getCreateName(){
return this.createName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateName(String createName){
this.createName = createName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_BY",nullable=true,length=50)
public String getCreateBy(){
return this.createBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="CREATE_DATE",nullable=true)
public Date getCreateDate(){
return this.createDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setCreateDate(Date createDate){
this.createDate = createDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_NAME",nullable=true,length=50)
public String getUpdateName(){
return this.updateName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateName(String updateName){
this.updateName = updateName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_BY",nullable=true,length=50)
public String getUpdateBy(){
return this.updateBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="UPDATE_DATE",nullable=true)
public Date getUpdateDate(){
return this.updateDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setUpdateDate(Date updateDate){
this.updateDate = updateDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
public String getSysOrgCode(){
return this.sysOrgCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysOrgCode(String sysOrgCode){
this.sysOrgCode = sysOrgCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
public String getSysCompanyCode(){
return this.sysCompanyCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysCompanyCode(String sysCompanyCode){
this.sysCompanyCode = sysCompanyCode;
}
/**
*: java.lang.String
*@return: java.lang.String app
*/
@Column(name ="APPMODEL_CODE",nullable=true,length=64)
public String getAppmodelCode(){
return this.appmodelCode;
}
/**
*: java.lang.String
*@param: java.lang.String app
*/
public void setAppmodelCode(String appmodelCode){
this.appmodelCode = appmodelCode;
}
/**
*: java.lang.String
*@return: java.lang.String app
*/
@Column(name ="APPMODEL_NAME",nullable=true,length=64)
public String getAppmodelName(){
return this.appmodelName;
}
/**
*: java.lang.String
*@param: java.lang.String app
*/
public void setAppmodelName(String appmodelName){
this.appmodelName = appmodelName;
}
/**
*: java.lang.String
*@return: java.lang.String app
*/
@Column(name ="APPMODEL_SORT",nullable=true,length=64)
public String getAppmodelSort(){
return this.appmodelSort;
}
/**
*: java.lang.String
*@param: java.lang.String app
*/
public void setAppmodelSort(String appmodelSort){
this.appmodelSort = appmodelSort;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="TYPE",nullable=true,length=64)
public String getType(){
return this.type;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setType(String type){
this.type = type;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ROUTE",nullable=true,length=64)
public String getRoute(){
return this.route;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRoute(String route){
this.route = route;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="PICTURE",nullable=true,length=512)
public String getPicture(){
return this.picture;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setPicture(String picture){
this.picture = picture;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="IF_BIND",nullable=true,length=64)
public String getIfBind(){
return this.ifBind;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setIfBind(String ifBind){
this.ifBind = ifBind;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="QUERY1",nullable=true,length=64)
public String getQuery1(){
return this.query1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setQuery1(String query1){
this.query1 = query1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="QUERY2",nullable=true,length=64)
public String getQuery2(){
return this.query2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setQuery2(String query2){
this.query2 = query2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="QUERY3",nullable=true,length=64)
public String getQuery3(){
return this.query3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setQuery3(String query3){
this.query3 = query3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="QUERY4",nullable=true,length=64)
public String getQuery4(){
return this.query4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setQuery4(String query4){
this.query4 = query4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="QUERY5",nullable=true,length=64)
public String getQuery5(){
return this.query5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setQuery5(String query5){
this.query5 = query5;
}
/**
*: java.lang.String
*@return: java.lang.String 6
*/
@Column(name ="QUERY6",nullable=true,length=64)
public String getQuery6(){
return this.query6;
}
/**
*: java.lang.String
*@param: java.lang.String 6
*/
public void setQuery6(String query6){
this.query6 = query6;
}
}

View File

@ -0,0 +1,402 @@
package com.zzjee.uniapp.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:40:55
* @version V1.0
*
*/
@Entity
@Table(name = "wms_app_role", schema = "")
@SuppressWarnings("serial")
public class WmsAppRoleEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人名称*/
private String createName;
/**创建人登录名称*/
private String createBy;
/**创建日期*/
private Date createDate;
/**更新人名称*/
private String updateName;
/**更新人登录名称*/
private String updateBy;
/**更新日期*/
private Date updateDate;
/**所属部门*/
private String sysOrgCode;
/**所属公司*/
private String sysCompanyCode;
/**角色编号*/
@Excel(name="角色编号")
private String approleCode;
/**角色名称*/
@Excel(name="角色名称")
private String approleName;
/**app模块id*/
@Excel(name="app模块id")
private String appmodelId;
/**app模块编号*/
@Excel(name="app模块编号")
private String appmodelCode;
/**app模块名称*/
@Excel(name="app模块名称")
private String appmodelName;
/**备用1*/
private String query1;
/**备用2*/
private String query2;
/**备用3*/
private String query3;
/**备用4*/
private String query4;
/**备用5*/
private String query5;
/**备用6*/
private String query6;
/**
*: java.lang.String
*@return: java.lang.String
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setId(String id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_NAME",nullable=true,length=50)
public String getCreateName(){
return this.createName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateName(String createName){
this.createName = createName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_BY",nullable=true,length=50)
public String getCreateBy(){
return this.createBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="CREATE_DATE",nullable=true)
public Date getCreateDate(){
return this.createDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setCreateDate(Date createDate){
this.createDate = createDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_NAME",nullable=true,length=50)
public String getUpdateName(){
return this.updateName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateName(String updateName){
this.updateName = updateName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_BY",nullable=true,length=50)
public String getUpdateBy(){
return this.updateBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="UPDATE_DATE",nullable=true)
public Date getUpdateDate(){
return this.updateDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setUpdateDate(Date updateDate){
this.updateDate = updateDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
public String getSysOrgCode(){
return this.sysOrgCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysOrgCode(String sysOrgCode){
this.sysOrgCode = sysOrgCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
public String getSysCompanyCode(){
return this.sysCompanyCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysCompanyCode(String sysCompanyCode){
this.sysCompanyCode = sysCompanyCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPROLE_CODE",nullable=true,length=64)
public String getApproleCode(){
return this.approleCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setApproleCode(String approleCode){
this.approleCode = approleCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPROLE_NAME",nullable=true,length=64)
public String getApproleName(){
return this.approleName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setApproleName(String approleName){
this.approleName = approleName;
}
/**
*: java.lang.String
*@return: java.lang.String appid
*/
@Column(name ="APPMODEL_ID",nullable=true,length=255)
public String getAppmodelId(){
return this.appmodelId;
}
/**
*: java.lang.String
*@param: java.lang.String appid
*/
public void setAppmodelId(String appmodelId){
this.appmodelId = appmodelId;
}
/**
*: java.lang.String
*@return: java.lang.String app
*/
@Column(name ="APPMODEL_CODE",nullable=true,length=255)
public String getAppmodelCode(){
return this.appmodelCode;
}
/**
*: java.lang.String
*@param: java.lang.String app
*/
public void setAppmodelCode(String appmodelCode){
this.appmodelCode = appmodelCode;
}
/**
*: java.lang.String
*@return: java.lang.String app
*/
@Column(name ="APPMODEL_NAME",nullable=true,length=255)
public String getAppmodelName(){
return this.appmodelName;
}
/**
*: java.lang.String
*@param: java.lang.String app
*/
public void setAppmodelName(String appmodelName){
this.appmodelName = appmodelName;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="QUERY1",nullable=true,length=64)
public String getQuery1(){
return this.query1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setQuery1(String query1){
this.query1 = query1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="QUERY2",nullable=true,length=64)
public String getQuery2(){
return this.query2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setQuery2(String query2){
this.query2 = query2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="QUERY3",nullable=true,length=64)
public String getQuery3(){
return this.query3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setQuery3(String query3){
this.query3 = query3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="QUERY4",nullable=true,length=64)
public String getQuery4(){
return this.query4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setQuery4(String query4){
this.query4 = query4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="QUERY5",nullable=true,length=64)
public String getQuery5(){
return this.query5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setQuery5(String query5){
this.query5 = query5;
}
/**
*: java.lang.String
*@return: java.lang.String 6
*/
@Column(name ="QUERY6",nullable=true,length=64)
public String getQuery6(){
return this.query6;
}
/**
*: java.lang.String
*@param: java.lang.String 6
*/
public void setQuery6(String query6){
this.query6 = query6;
}
}

View File

@ -0,0 +1,402 @@
package com.zzjee.uniapp.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: APP
* @author onlineGenerator
* @date 2022-06-13 08:41:32
* @version V1.0
*
*/
@Entity
@Table(name = "wms_app_user", schema = "")
@SuppressWarnings("serial")
public class WmsAppUserEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人名称*/
private String createName;
/**创建人登录名称*/
private String createBy;
/**创建日期*/
private Date createDate;
/**更新人名称*/
private String updateName;
/**更新人登录名称*/
private String updateBy;
/**更新日期*/
private Date updateDate;
/**所属部门*/
private String sysOrgCode;
/**所属公司*/
private String sysCompanyCode;
/**用户编号*/
@Excel(name="用户编号")
private String appuserCode;
/**用户名称*/
@Excel(name="用户名称")
private String appuserName;
/**角色id*/
@Excel(name="角色id")
private String approleId;
/**角色编号*/
@Excel(name="角色编号")
private String approleCode;
/**角色名称*/
@Excel(name="角色名称")
private String approleName;
/**备用1*/
private String query1;
/**备用2*/
private String query2;
/**备用3*/
private String query3;
/**备用4*/
private String query4;
/**备用5*/
private String query5;
/**备用6*/
private String query6;
/**
*: java.lang.String
*@return: java.lang.String
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setId(String id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_NAME",nullable=true,length=50)
public String getCreateName(){
return this.createName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateName(String createName){
this.createName = createName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_BY",nullable=true,length=50)
public String getCreateBy(){
return this.createBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCreateBy(String createBy){
this.createBy = createBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="CREATE_DATE",nullable=true)
public Date getCreateDate(){
return this.createDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setCreateDate(Date createDate){
this.createDate = createDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_NAME",nullable=true,length=50)
public String getUpdateName(){
return this.updateName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateName(String updateName){
this.updateName = updateName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="UPDATE_BY",nullable=true,length=50)
public String getUpdateBy(){
return this.updateBy;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setUpdateBy(String updateBy){
this.updateBy = updateBy;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="UPDATE_DATE",nullable=true)
public Date getUpdateDate(){
return this.updateDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setUpdateDate(Date updateDate){
this.updateDate = updateDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
public String getSysOrgCode(){
return this.sysOrgCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysOrgCode(String sysOrgCode){
this.sysOrgCode = sysOrgCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
public String getSysCompanyCode(){
return this.sysCompanyCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSysCompanyCode(String sysCompanyCode){
this.sysCompanyCode = sysCompanyCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPUSER_CODE",nullable=true,length=64)
public String getAppuserCode(){
return this.appuserCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setAppuserCode(String appuserCode){
this.appuserCode = appuserCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPUSER_NAME",nullable=true,length=64)
public String getAppuserName(){
return this.appuserName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setAppuserName(String appuserName){
this.appuserName = appuserName;
}
/**
*: java.lang.String
*@return: java.lang.String id
*/
@Column(name ="APPROLE_ID",nullable=true,length=64)
public String getApproleId(){
return this.approleId;
}
/**
*: java.lang.String
*@param: java.lang.String id
*/
public void setApproleId(String approleId){
this.approleId = approleId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPROLE_CODE",nullable=true,length=64)
public String getApproleCode(){
return this.approleCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setApproleCode(String approleCode){
this.approleCode = approleCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="APPROLE_NAME",nullable=true,length=64)
public String getApproleName(){
return this.approleName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setApproleName(String approleName){
this.approleName = approleName;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="QUERY1",nullable=true,length=64)
public String getQuery1(){
return this.query1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setQuery1(String query1){
this.query1 = query1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="QUERY2",nullable=true,length=64)
public String getQuery2(){
return this.query2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setQuery2(String query2){
this.query2 = query2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="QUERY3",nullable=true,length=64)
public String getQuery3(){
return this.query3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setQuery3(String query3){
this.query3 = query3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="QUERY4",nullable=true,length=64)
public String getQuery4(){
return this.query4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setQuery4(String query4){
this.query4 = query4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="QUERY5",nullable=true,length=64)
public String getQuery5(){
return this.query5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setQuery5(String query5){
this.query5 = query5;
}
/**
*: java.lang.String
*@return: java.lang.String 6
*/
@Column(name ="QUERY6",nullable=true,length=64)
public String getQuery6(){
return this.query6;
}
/**
*: java.lang.String
*@param: java.lang.String 6
*/
public void setQuery6(String query6){
this.query6 = query6;
}
}

View File

@ -0,0 +1,15 @@
package com.zzjee.uniapp.service;
import com.zzjee.uniapp.entity.WmsAppFunctionEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface WmsAppFunctionServiceI extends CommonService{
public void delete(WmsAppFunctionEntity entity) throws Exception;
public Serializable save(WmsAppFunctionEntity entity) throws Exception;
public void saveOrUpdate(WmsAppFunctionEntity entity) throws Exception;
}

View File

@ -0,0 +1,15 @@
package com.zzjee.uniapp.service;
import com.zzjee.uniapp.entity.WmsAppRoleEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface WmsAppRoleServiceI extends CommonService{
public void delete(WmsAppRoleEntity entity) throws Exception;
public Serializable save(WmsAppRoleEntity entity) throws Exception;
public void saveOrUpdate(WmsAppRoleEntity entity) throws Exception;
}

View File

@ -0,0 +1,15 @@
package com.zzjee.uniapp.service;
import com.zzjee.uniapp.entity.WmsAppUserEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface WmsAppUserServiceI extends CommonService{
public void delete(WmsAppUserEntity entity) throws Exception;
public Serializable save(WmsAppUserEntity entity) throws Exception;
public void saveOrUpdate(WmsAppUserEntity entity) throws Exception;
}

View File

@ -0,0 +1,160 @@
package com.zzjee.uniapp.service.impl;
import com.zzjee.uniapp.service.WmsAppFunctionServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.uniapp.entity.WmsAppFunctionEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.io.Serializable;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter;
@Service("wmsAppFunctionService")
@Transactional
public class WmsAppFunctionServiceImpl extends CommonServiceImpl implements WmsAppFunctionServiceI {
public void delete(WmsAppFunctionEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(WmsAppFunctionEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(WmsAppFunctionEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(WmsAppFunctionEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(WmsAppFunctionEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param id
* @return
*/
private void doDelBus(WmsAppFunctionEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(WmsAppFunctionEntity t){
Map<String,Object> map = new HashMap<String,Object>();
map.put("id", t.getId());
map.put("create_name", t.getCreateName());
map.put("create_by", t.getCreateBy());
map.put("create_date", t.getCreateDate());
map.put("update_name", t.getUpdateName());
map.put("update_by", t.getUpdateBy());
map.put("update_date", t.getUpdateDate());
map.put("sys_org_code", t.getSysOrgCode());
map.put("sys_company_code", t.getSysCompanyCode());
map.put("appmodel_code", t.getAppmodelCode());
map.put("appmodel_name", t.getAppmodelName());
map.put("appmodel_sort", t.getAppmodelSort());
map.put("type", t.getType());
map.put("route", t.getRoute());
map.put("picture", t.getPicture());
map.put("if_bind", t.getIfBind());
map.put("query1", t.getQuery1());
map.put("query2", t.getQuery2());
map.put("query3", t.getQuery3());
map.put("query4", t.getQuery4());
map.put("query5", t.getQuery5());
map.put("query6", t.getQuery6());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,WmsAppFunctionEntity t){
sql = sql.replace("#{id}",String.valueOf(t.getId()));
sql = sql.replace("#{create_name}",String.valueOf(t.getCreateName()));
sql = sql.replace("#{create_by}",String.valueOf(t.getCreateBy()));
sql = sql.replace("#{create_date}",String.valueOf(t.getCreateDate()));
sql = sql.replace("#{update_name}",String.valueOf(t.getUpdateName()));
sql = sql.replace("#{update_by}",String.valueOf(t.getUpdateBy()));
sql = sql.replace("#{update_date}",String.valueOf(t.getUpdateDate()));
sql = sql.replace("#{sys_org_code}",String.valueOf(t.getSysOrgCode()));
sql = sql.replace("#{sys_company_code}",String.valueOf(t.getSysCompanyCode()));
sql = sql.replace("#{appmodel_code}",String.valueOf(t.getAppmodelCode()));
sql = sql.replace("#{appmodel_name}",String.valueOf(t.getAppmodelName()));
sql = sql.replace("#{appmodel_sort}",String.valueOf(t.getAppmodelSort()));
sql = sql.replace("#{type}",String.valueOf(t.getType()));
sql = sql.replace("#{route}",String.valueOf(t.getRoute()));
sql = sql.replace("#{picture}",String.valueOf(t.getPicture()));
sql = sql.replace("#{if_bind}",String.valueOf(t.getIfBind()));
sql = sql.replace("#{query1}",String.valueOf(t.getQuery1()));
sql = sql.replace("#{query2}",String.valueOf(t.getQuery2()));
sql = sql.replace("#{query3}",String.valueOf(t.getQuery3()));
sql = sql.replace("#{query4}",String.valueOf(t.getQuery4()));
sql = sql.replace("#{query5}",String.valueOf(t.getQuery5()));
sql = sql.replace("#{query6}",String.valueOf(t.getQuery6()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
if(StringUtil.isNotEmpty(cgJavaValue)){
Object obj = null;
try {
if("class".equals(cgJavaType)){
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
}else if("spring".equals(cgJavaType)){
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
}
if(obj instanceof CgformEnhanceJavaInter){
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
javaInter.execute("wms_app_function",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -0,0 +1,156 @@
package com.zzjee.uniapp.service.impl;
import com.zzjee.uniapp.service.WmsAppRoleServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.uniapp.entity.WmsAppRoleEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.io.Serializable;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter;
@Service("wmsAppRoleService")
@Transactional
public class WmsAppRoleServiceImpl extends CommonServiceImpl implements WmsAppRoleServiceI {
public void delete(WmsAppRoleEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(WmsAppRoleEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(WmsAppRoleEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(WmsAppRoleEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(WmsAppRoleEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param id
* @return
*/
private void doDelBus(WmsAppRoleEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(WmsAppRoleEntity t){
Map<String,Object> map = new HashMap<String,Object>();
map.put("id", t.getId());
map.put("create_name", t.getCreateName());
map.put("create_by", t.getCreateBy());
map.put("create_date", t.getCreateDate());
map.put("update_name", t.getUpdateName());
map.put("update_by", t.getUpdateBy());
map.put("update_date", t.getUpdateDate());
map.put("sys_org_code", t.getSysOrgCode());
map.put("sys_company_code", t.getSysCompanyCode());
map.put("approle_code", t.getApproleCode());
map.put("approle_name", t.getApproleName());
map.put("appmodel_id", t.getAppmodelId());
map.put("appmodel_code", t.getAppmodelCode());
map.put("appmodel_name", t.getAppmodelName());
map.put("query1", t.getQuery1());
map.put("query2", t.getQuery2());
map.put("query3", t.getQuery3());
map.put("query4", t.getQuery4());
map.put("query5", t.getQuery5());
map.put("query6", t.getQuery6());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,WmsAppRoleEntity t){
sql = sql.replace("#{id}",String.valueOf(t.getId()));
sql = sql.replace("#{create_name}",String.valueOf(t.getCreateName()));
sql = sql.replace("#{create_by}",String.valueOf(t.getCreateBy()));
sql = sql.replace("#{create_date}",String.valueOf(t.getCreateDate()));
sql = sql.replace("#{update_name}",String.valueOf(t.getUpdateName()));
sql = sql.replace("#{update_by}",String.valueOf(t.getUpdateBy()));
sql = sql.replace("#{update_date}",String.valueOf(t.getUpdateDate()));
sql = sql.replace("#{sys_org_code}",String.valueOf(t.getSysOrgCode()));
sql = sql.replace("#{sys_company_code}",String.valueOf(t.getSysCompanyCode()));
sql = sql.replace("#{approle_code}",String.valueOf(t.getApproleCode()));
sql = sql.replace("#{approle_name}",String.valueOf(t.getApproleName()));
sql = sql.replace("#{appmodel_id}",String.valueOf(t.getAppmodelId()));
sql = sql.replace("#{appmodel_code}",String.valueOf(t.getAppmodelCode()));
sql = sql.replace("#{appmodel_name}",String.valueOf(t.getAppmodelName()));
sql = sql.replace("#{query1}",String.valueOf(t.getQuery1()));
sql = sql.replace("#{query2}",String.valueOf(t.getQuery2()));
sql = sql.replace("#{query3}",String.valueOf(t.getQuery3()));
sql = sql.replace("#{query4}",String.valueOf(t.getQuery4()));
sql = sql.replace("#{query5}",String.valueOf(t.getQuery5()));
sql = sql.replace("#{query6}",String.valueOf(t.getQuery6()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
if(StringUtil.isNotEmpty(cgJavaValue)){
Object obj = null;
try {
if("class".equals(cgJavaType)){
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
}else if("spring".equals(cgJavaType)){
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
}
if(obj instanceof CgformEnhanceJavaInter){
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
javaInter.execute("wms_app_role",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -0,0 +1,156 @@
package com.zzjee.uniapp.service.impl;
import com.zzjee.uniapp.service.WmsAppUserServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.uniapp.entity.WmsAppUserEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.io.Serializable;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter;
@Service("wmsAppUserService")
@Transactional
public class WmsAppUserServiceImpl extends CommonServiceImpl implements WmsAppUserServiceI {
public void delete(WmsAppUserEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(WmsAppUserEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(WmsAppUserEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(WmsAppUserEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(WmsAppUserEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param id
* @return
*/
private void doDelBus(WmsAppUserEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(WmsAppUserEntity t){
Map<String,Object> map = new HashMap<String,Object>();
map.put("id", t.getId());
map.put("create_name", t.getCreateName());
map.put("create_by", t.getCreateBy());
map.put("create_date", t.getCreateDate());
map.put("update_name", t.getUpdateName());
map.put("update_by", t.getUpdateBy());
map.put("update_date", t.getUpdateDate());
map.put("sys_org_code", t.getSysOrgCode());
map.put("sys_company_code", t.getSysCompanyCode());
map.put("appuser_code", t.getAppuserCode());
map.put("appuser_name", t.getAppuserName());
map.put("approle_id", t.getApproleId());
map.put("approle_code", t.getApproleCode());
map.put("approle_name", t.getApproleName());
map.put("query1", t.getQuery1());
map.put("query2", t.getQuery2());
map.put("query3", t.getQuery3());
map.put("query4", t.getQuery4());
map.put("query5", t.getQuery5());
map.put("query6", t.getQuery6());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,WmsAppUserEntity t){
sql = sql.replace("#{id}",String.valueOf(t.getId()));
sql = sql.replace("#{create_name}",String.valueOf(t.getCreateName()));
sql = sql.replace("#{create_by}",String.valueOf(t.getCreateBy()));
sql = sql.replace("#{create_date}",String.valueOf(t.getCreateDate()));
sql = sql.replace("#{update_name}",String.valueOf(t.getUpdateName()));
sql = sql.replace("#{update_by}",String.valueOf(t.getUpdateBy()));
sql = sql.replace("#{update_date}",String.valueOf(t.getUpdateDate()));
sql = sql.replace("#{sys_org_code}",String.valueOf(t.getSysOrgCode()));
sql = sql.replace("#{sys_company_code}",String.valueOf(t.getSysCompanyCode()));
sql = sql.replace("#{appuser_code}",String.valueOf(t.getAppuserCode()));
sql = sql.replace("#{appuser_name}",String.valueOf(t.getAppuserName()));
sql = sql.replace("#{approle_id}",String.valueOf(t.getApproleId()));
sql = sql.replace("#{approle_code}",String.valueOf(t.getApproleCode()));
sql = sql.replace("#{approle_name}",String.valueOf(t.getApproleName()));
sql = sql.replace("#{query1}",String.valueOf(t.getQuery1()));
sql = sql.replace("#{query2}",String.valueOf(t.getQuery2()));
sql = sql.replace("#{query3}",String.valueOf(t.getQuery3()));
sql = sql.replace("#{query4}",String.valueOf(t.getQuery4()));
sql = sql.replace("#{query5}",String.valueOf(t.getQuery5()));
sql = sql.replace("#{query6}",String.valueOf(t.getQuery6()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
if(StringUtil.isNotEmpty(cgJavaValue)){
Object obj = null;
try {
if("class".equals(cgJavaType)){
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
}else if("spring".equals(cgJavaType)){
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
}
if(obj instanceof CgformEnhanceJavaInter){
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
javaInter.execute("wms_app_user",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -0,0 +1,139 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP功能</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppFunctionController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${wmsAppFunctionPage.id }"/>
<input id="createName" name="createName" type="hidden" value="${wmsAppFunctionPage.createName }"/>
<input id="createBy" name="createBy" type="hidden" value="${wmsAppFunctionPage.createBy }"/>
<input id="createDate" name="createDate" type="hidden" value="${wmsAppFunctionPage.createDate }"/>
<input id="updateName" name="updateName" type="hidden" value="${wmsAppFunctionPage.updateName }"/>
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppFunctionPage.updateBy }"/>
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppFunctionPage.updateDate }"/>
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppFunctionPage.sysOrgCode }"/>
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppFunctionPage.sysCompanyCode }"/>
<input id="query1" name="query1" type="hidden" value="${wmsAppFunctionPage.query1 }"/>
<input id="query2" name="query2" type="hidden" value="${wmsAppFunctionPage.query2 }"/>
<input id="query3" name="query3" type="hidden" value="${wmsAppFunctionPage.query3 }"/>
<input id="query4" name="query4" type="hidden" value="${wmsAppFunctionPage.query4 }"/>
<input id="query5" name="query5" type="hidden" value="${wmsAppFunctionPage.query5 }"/>
<input id="query6" name="query6" type="hidden" value="${wmsAppFunctionPage.query6 }"/>
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
app模块编号:
</label>
</td>
<td class="value">
<input id="appmodelCode" name="appmodelCode" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块编号</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
app模块名称:
</label>
</td>
<td class="value">
<input id="appmodelName" name="appmodelName" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
app模块排序:
</label>
</td>
<td class="value">
<input id="appmodelSort" name="appmodelSort" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块排序</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
类型:
</label>
</td>
<td class="value">
<input id="type" name="type" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">类型</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
路径:
</label>
</td>
<td class="value">
<input id="route" name="route" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">路径</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
图片:
</label>
</td>
<td class="value">
<textarea style="width:600px;" class="inputxt" rows="6" id="picture" name="picture"
ignore="checked"
></textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">图片</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
是否禁用:
</label>
</td>
<td class="value">
<t:dictSelect field="ifBind" type="radio"
typeGroupCode="sf_yn" defaultVal="${wmsAppFunctionPage.ifBind}" hasLabel="false" title="是否禁用" datatype="*"
></t:dictSelect>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">是否禁用</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppFunction.js"></script>

View File

@ -0,0 +1,134 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP功能</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppFunctionController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${wmsAppFunctionPage.id }">
<input id="createName" name="createName" type="hidden" value="${wmsAppFunctionPage.createName }">
<input id="createBy" name="createBy" type="hidden" value="${wmsAppFunctionPage.createBy }">
<input id="createDate" name="createDate" type="hidden" value="${wmsAppFunctionPage.createDate }">
<input id="updateName" name="updateName" type="hidden" value="${wmsAppFunctionPage.updateName }">
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppFunctionPage.updateBy }">
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppFunctionPage.updateDate }">
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppFunctionPage.sysOrgCode }">
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppFunctionPage.sysCompanyCode }">
<input id="query1" name="query1" type="hidden" value="${wmsAppFunctionPage.query1 }">
<input id="query2" name="query2" type="hidden" value="${wmsAppFunctionPage.query2 }">
<input id="query3" name="query3" type="hidden" value="${wmsAppFunctionPage.query3 }">
<input id="query4" name="query4" type="hidden" value="${wmsAppFunctionPage.query4 }">
<input id="query5" name="query5" type="hidden" value="${wmsAppFunctionPage.query5 }">
<input id="query6" name="query6" type="hidden" value="${wmsAppFunctionPage.query6 }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
app模块编号:
</label>
</td>
<td class="value">
<input id="appmodelCode" name="appmodelCode" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${wmsAppFunctionPage.appmodelCode}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块编号</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
app模块名称:
</label>
</td>
<td class="value">
<input id="appmodelName" name="appmodelName" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${wmsAppFunctionPage.appmodelName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
app模块排序:
</label>
</td>
<td class="value">
<input id="appmodelSort" name="appmodelSort" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${wmsAppFunctionPage.appmodelSort}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块排序</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
类型:
</label>
</td>
<td class="value">
<input id="type" name="type" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppFunctionPage.type}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">类型</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
路径:
</label>
</td>
<td class="value">
<input id="route" name="route" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${wmsAppFunctionPage.route}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">路径</label>
</td>
<tr>
<td align="right">
<label class="Validform_label">
图片:
</label>
</td>
<td class="value">
<textarea id="picture" style="width:600px;" class="inputxt" rows="6" name="picture"
ignore="checked"
>${wmsAppFunctionPage.picture}</textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">图片</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
是否禁用:
</label>
</td>
<td class="value">
<t:dictSelect field="ifBind" type="radio"
typeGroupCode="sf_yn" defaultVal="${wmsAppFunctionPage.ifBind}" hasLabel="false" title="是否禁用" datatype="*"
></t:dictSelect>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">是否禁用</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppFunction.js"></script>

View File

@ -0,0 +1,32 @@
//通用弹出式文件上传
function commonUpload(callback){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:2100,
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
function browseImages(inputId, Img) {// 图片管理器,可多个上传共用
}
function browseFiles(inputId, file) {// 文件管理器,可多个上传共用
}
function decode(value, id) {//value传入值,id接受值
var last = value.lastIndexOf("/");
var filename = value.substring(last + 1, value.length);
$("#" + id).text(decodeURIComponent(filename));
}

View File

@ -0,0 +1,63 @@
<%@ 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>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="wmsAppFunctionList" checkbox="true" pagination="true" fitColumns="false" title="APP功能" actionUrl="wmsAppFunctionController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="app模块编号" field="appmodelCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="app模块名称" field="appmodelName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="app模块排序" field="appmodelSort" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="类型" field="type" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="路径" field="route" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="图片" field="picture" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="是否禁用" field="ifBind" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
<t:dgCol title="备用1" field="query1" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用2" field="query2" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用3" field="query3" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用4" field="query4" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用5" field="query5" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用6" field="query6" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="wmsAppFunctionController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="wmsAppFunctionController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="wmsAppFunctionController.do?goUpdate" funname="update"></t:dgToolBar>
<t:dgToolBar title="批量删除" icon="icon-remove" url="wmsAppFunctionController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="wmsAppFunctionController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
</t:datagrid>
</div>
</div>
<script src = "webpage/com/zzjee/uniapp/wmsAppFunctionList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'wmsAppFunctionController.do?upload', "wmsAppFunctionList");
}
//导出
function ExportXls() {
JeecgExcelExport("wmsAppFunctionController.do?exportXls","wmsAppFunctionList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("wmsAppFunctionController.do?exportXlsByT","wmsAppFunctionList");
}
</script>

View File

@ -0,0 +1,105 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP角色</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppRoleController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${wmsAppRolePage.id }"/>
<input id="createName" name="createName" type="hidden" value="${wmsAppRolePage.createName }"/>
<input id="createBy" name="createBy" type="hidden" value="${wmsAppRolePage.createBy }"/>
<input id="createDate" name="createDate" type="hidden" value="${wmsAppRolePage.createDate }"/>
<input id="updateName" name="updateName" type="hidden" value="${wmsAppRolePage.updateName }"/>
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppRolePage.updateBy }"/>
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppRolePage.updateDate }"/>
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppRolePage.sysOrgCode }"/>
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppRolePage.sysCompanyCode }"/>
<input id="query1" name="query1" type="hidden" value="${wmsAppRolePage.query1 }"/>
<input id="query2" name="query2" type="hidden" value="${wmsAppRolePage.query2 }"/>
<input id="query3" name="query3" type="hidden" value="${wmsAppRolePage.query3 }"/>
<input id="query4" name="query4" type="hidden" value="${wmsAppRolePage.query4 }"/>
<input id="query5" name="query5" type="hidden" value="${wmsAppRolePage.query5 }"/>
<input id="query6" name="query6" type="hidden" value="${wmsAppRolePage.query6 }"/>
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
角色编号:
</label>
</td>
<td class="value">
<input id="approleCode" name="approleCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
角色名称:
</label>
</td>
<td class="value">
<input id="approleName" name="approleName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色名称</label>
</td>
</tr>
<%-- <tr>--%>
<%-- <td align="right">--%>
<%-- <label class="Validform_label">--%>
<%-- app模块id:--%>
<%-- </label>--%>
<%-- </td>--%>
<%-- <td class="value">--%>
<%-- <input id="appmodelId" name="appmodelId" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore"--%>
<%-- onclick="inputClick(this,'appmodel_code,appmodel_name','pop_app_fun')" />--%>
<%-- <span class="Validform_checktip"></span>--%>
<%-- <label class="Validform_label" style="display: none;">app模块id</label>--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td align="right">
<label class="Validform_label">
app模块编号:
</label>
</td>
<td class="value">
<textarea style="width:600px;" class="inputxt" rows="6" id="appmodelCode" name="appmodelCode"
ignore="ignore"
onclick="inputClick(this,'appmodel_code,appmodel_name','pop_app_fun')"
></textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
app模块名称:
</label>
</td>
<td class="value">
<textarea style="width:600px;" class="inputxt" rows="6" id="appmodelName" name="appmodelName"
ignore="ignore"
></textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块名称</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppRole.js"></script>

View File

@ -0,0 +1,104 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP角色</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppRoleController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${wmsAppRolePage.id }">
<input id="createName" name="createName" type="hidden" value="${wmsAppRolePage.createName }">
<input id="createBy" name="createBy" type="hidden" value="${wmsAppRolePage.createBy }">
<input id="createDate" name="createDate" type="hidden" value="${wmsAppRolePage.createDate }">
<input id="updateName" name="updateName" type="hidden" value="${wmsAppRolePage.updateName }">
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppRolePage.updateBy }">
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppRolePage.updateDate }">
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppRolePage.sysOrgCode }">
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppRolePage.sysCompanyCode }">
<input id="query1" name="query1" type="hidden" value="${wmsAppRolePage.query1 }">
<input id="query2" name="query2" type="hidden" value="${wmsAppRolePage.query2 }">
<input id="query3" name="query3" type="hidden" value="${wmsAppRolePage.query3 }">
<input id="query4" name="query4" type="hidden" value="${wmsAppRolePage.query4 }">
<input id="query5" name="query5" type="hidden" value="${wmsAppRolePage.query5 }">
<input id="query6" name="query6" type="hidden" value="${wmsAppRolePage.query6 }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
角色编号:
</label>
</td>
<td class="value">
<input id="approleCode" name="approleCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppRolePage.approleCode}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
角色名称:
</label>
</td>
<td class="value">
<input id="approleName" name="approleName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppRolePage.approleName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色名称</label>
</td>
</tr>
<%-- <tr>--%>
<%-- <td align="right">--%>
<%-- <label class="Validform_label">--%>
<%-- app模块id:--%>
<%-- </label>--%>
<%-- </td>--%>
<%-- <td class="value">--%>
<%-- <input id="appmodelId" name="appmodelId" type="text" style="width: 150px" class="searchbox-inputtext" --%>
<%-- ignore="ignore"--%>
<%-- onclick="inputClick(this,'appmodel_code,appmodel_name','pop_app_fun')" value='${wmsAppRolePage.appmodelId}'>--%>
<%-- <span class="Validform_checktip"></span>--%>
<%-- <label class="Validform_label" style="display: none;">app模块id</label>--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td align="right">
<label class="Validform_label">
app模块编号:
</label>
</td>
<td class="value">
<textarea id="appmodelCode" style="width:600px;" class="inputxt" rows="6" name="appmodelCode"
ignore="ignore"
onclick="inputClick(this,'appmodel_code,appmodel_name','pop_app_fun')"
>${wmsAppRolePage.appmodelCode}</textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
app模块名称:
</label>
</td>
<td class="value">
<textarea id="appmodelName" style="width:600px;" class="inputxt" rows="6" name="appmodelName"
ignore="ignore"
>${wmsAppRolePage.appmodelName}</textarea>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">app模块名称</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppRole.js"></script>

View File

@ -0,0 +1,32 @@
//通用弹出式文件上传
function commonUpload(callback){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:2100,
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
function browseImages(inputId, Img) {// 图片管理器,可多个上传共用
}
function browseFiles(inputId, file) {// 文件管理器,可多个上传共用
}
function decode(value, id) {//value传入值,id接受值
var last = value.lastIndexOf("/");
var filename = value.substring(last + 1, value.length);
$("#" + id).text(decodeURIComponent(filename));
}

View File

@ -0,0 +1,61 @@
<%@ 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>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="wmsAppRoleList" checkbox="true" pagination="true" fitColumns="false" title="APP角色" actionUrl="wmsAppRoleController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="角色编号" field="approleCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="角色名称" field="approleName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="app模块id" field="appmodelId" queryMode="group" dictionary="pop_app_fun,id,appmodel_code,appmodel_name,appmodel_id,appmodel_code,appmodel_name" popup="true" width="120"></t:dgCol>
<t:dgCol title="app模块编号" field="appmodelCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="app模块名称" field="appmodelName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用1" field="query1" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用2" field="query2" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用3" field="query3" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用4" field="query4" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用5" field="query5" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用6" field="query6" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="wmsAppRoleController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="wmsAppRoleController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="wmsAppRoleController.do?goUpdate" funname="update"></t:dgToolBar>
<t:dgToolBar title="批量删除" icon="icon-remove" url="wmsAppRoleController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="wmsAppRoleController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
</t:datagrid>
</div>
</div>
<script src = "webpage/com/zzjee/uniapp/wmsAppRoleList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'wmsAppRoleController.do?upload', "wmsAppRoleList");
}
//导出
function ExportXls() {
JeecgExcelExport("wmsAppRoleController.do?exportXls","wmsAppRoleList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("wmsAppRoleController.do?exportXlsByT","wmsAppRoleList");
}
</script>

View File

@ -0,0 +1,106 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP角色分配 </title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppUserController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${wmsAppUserPage.id }"/>
<input id="createName" name="createName" type="hidden" value="${wmsAppUserPage.createName }"/>
<input id="createBy" name="createBy" type="hidden" value="${wmsAppUserPage.createBy }"/>
<input id="createDate" name="createDate" type="hidden" value="${wmsAppUserPage.createDate }"/>
<input id="updateName" name="updateName" type="hidden" value="${wmsAppUserPage.updateName }"/>
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppUserPage.updateBy }"/>
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppUserPage.updateDate }"/>
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppUserPage.sysOrgCode }"/>
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppUserPage.sysCompanyCode }"/>
<input id="query1" name="query1" type="hidden" value="${wmsAppUserPage.query1 }"/>
<input id="query2" name="query2" type="hidden" value="${wmsAppUserPage.query2 }"/>
<input id="query3" name="query3" type="hidden" value="${wmsAppUserPage.query3 }"/>
<input id="query4" name="query4" type="hidden" value="${wmsAppUserPage.query4 }"/>
<input id="query5" name="query5" type="hidden" value="${wmsAppUserPage.query5 }"/>
<input id="query6" name="query6" type="hidden" value="${wmsAppUserPage.query6 }"/>
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
用户编号:
</label>
</td>
<td class="value">
<input id="appuserCode" name="appuserCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">用户编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
用户名称:
</label>
</td>
<td class="value">
<input id="appuserName" name="appuserName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">用户名称</label>
</td>
</tr>
<%-- <tr>--%>
<%-- <td align="right">--%>
<%-- <label class="Validform_label">--%>
<%-- 角色id:--%>
<%-- </label>--%>
<%-- </td>--%>
<%-- <td class="value">--%>
<%-- <input id="approleId" name="approleId" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore"--%>
<%-- onclick="inputClick(this,'approle_code,approle_name','pop_app_role')" />--%>
<%-- <span class="Validform_checktip"></span>--%>
<%-- <label class="Validform_label" style="display: none;">角色id</label>--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td align="right">
<label class="Validform_label">
角色编号:
</label>
</td>
<td class="value">
<input id="approleCode" name="approleCode" type="text" style="width: 150px" class="inputxt"
onclick="inputClick(this,'approle_code,approle_name','pop_app_role')"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
角色名称:
</label>
</td>
<td class="value">
<input id="approleName" name="approleName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色名称</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppUser.js"></script>

View File

@ -0,0 +1,103 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>APP角色分配 </title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="wmsAppUserController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${wmsAppUserPage.id }">
<input id="createName" name="createName" type="hidden" value="${wmsAppUserPage.createName }">
<input id="createBy" name="createBy" type="hidden" value="${wmsAppUserPage.createBy }">
<input id="createDate" name="createDate" type="hidden" value="${wmsAppUserPage.createDate }">
<input id="updateName" name="updateName" type="hidden" value="${wmsAppUserPage.updateName }">
<input id="updateBy" name="updateBy" type="hidden" value="${wmsAppUserPage.updateBy }">
<input id="updateDate" name="updateDate" type="hidden" value="${wmsAppUserPage.updateDate }">
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${wmsAppUserPage.sysOrgCode }">
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${wmsAppUserPage.sysCompanyCode }">
<input id="query1" name="query1" type="hidden" value="${wmsAppUserPage.query1 }">
<input id="query2" name="query2" type="hidden" value="${wmsAppUserPage.query2 }">
<input id="query3" name="query3" type="hidden" value="${wmsAppUserPage.query3 }">
<input id="query4" name="query4" type="hidden" value="${wmsAppUserPage.query4 }">
<input id="query5" name="query5" type="hidden" value="${wmsAppUserPage.query5 }">
<input id="query6" name="query6" type="hidden" value="${wmsAppUserPage.query6 }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
用户编号:
</label>
</td>
<td class="value">
<input id="appuserCode" name="appuserCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppUserPage.appuserCode}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">用户编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
用户名称:
</label>
</td>
<td class="value">
<input id="appuserName" name="appuserName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppUserPage.appuserName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">用户名称</label>
</td>
</tr>
<%-- <tr>--%>
<%-- <td align="right">--%>
<%-- <label class="Validform_label">--%>
<%-- 角色id:--%>
<%-- </label>--%>
<%-- </td>--%>
<%-- <td class="value">--%>
<%-- <input id="approleId" name="approleId" type="text" style="width: 150px" class="searchbox-inputtext" --%>
<%-- ignore="ignore"--%>
<%-- onclick="inputClick(this,'id,approle_code,approle_name','pop_app_role')" value='${wmsAppUserPage.approleId}'>--%>
<%-- <span class="Validform_checktip"></span>--%>
<%-- <label class="Validform_label" style="display: none;">角色id</label>--%>
<%-- </td>--%>
<%-- </tr>--%>
<tr>
<td align="right">
<label class="Validform_label">
角色编号:
</label>
</td>
<td class="value">
<input id="approleCode" name="approleCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore" onclick="inputClick(this,'approle_code,approle_name','pop_app_role')"
value='${wmsAppUserPage.approleCode}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色编号</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
角色名称:
</label>
</td>
<td class="value">
<input id="approleName" name="approleName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${wmsAppUserPage.approleName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">角色名称</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/uniapp/wmsAppUser.js"></script>

View File

@ -0,0 +1,32 @@
//通用弹出式文件上传
function commonUpload(callback){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:2100,
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
function browseImages(inputId, Img) {// 图片管理器,可多个上传共用
}
function browseFiles(inputId, file) {// 文件管理器,可多个上传共用
}
function decode(value, id) {//value传入值,id接受值
var last = value.lastIndexOf("/");
var filename = value.substring(last + 1, value.length);
$("#" + id).text(decodeURIComponent(filename));
}

View File

@ -0,0 +1,61 @@
<%@ 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>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="wmsAppUserList" checkbox="true" pagination="true" fitColumns="false" title="APP角色分配 " actionUrl="wmsAppUserController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="用户编号" field="appuserCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="用户名称" field="appuserName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="角色id" field="approleId" queryMode="group" dictionary="pop_app_role,id,approle_code,approle_name,approle_id,approle_code,approle_name" popup="true" width="120"></t:dgCol>
<t:dgCol title="角色编号" field="approleCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="角色名称" field="approleName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用1" field="query1" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用2" field="query2" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用3" field="query3" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用4" field="query4" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用5" field="query5" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="备用6" field="query6" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="wmsAppUserController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="wmsAppUserController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="wmsAppUserController.do?goUpdate" funname="update"></t:dgToolBar>
<t:dgToolBar title="批量删除" icon="icon-remove" url="wmsAppUserController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="wmsAppUserController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
</t:datagrid>
</div>
</div>
<script src = "webpage/com/zzjee/uniapp/wmsAppUserList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'wmsAppUserController.do?upload', "wmsAppUserList");
}
//导出
function ExportXls() {
JeecgExcelExport("wmsAppUserController.do?exportXls","wmsAppUserList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("wmsAppUserController.do?exportXlsByT","wmsAppUserList");
}
</script>