UNIAPP -接口重构

master
erzhongxmu 2022-07-28 16:47:43 +08:00
parent 50b4e3b9f0
commit 868a65594d
96 changed files with 100 additions and 17672 deletions

View File

@ -1,400 +0,0 @@
package com.zzjee.wz.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.wz.entity.TWzLocationEntity;
import com.zzjee.wz.service.TWzLocationServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.ResourceUtil;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:41:04
* @version V1.0
*
*/
@Api(value="TWzLocation",description="库存地点",tags="tWzLocationController")
@Controller
@RequestMapping("/tWzLocationController")
public class TWzLocationController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(TWzLocationController.class);
@Autowired
private TWzLocationServiceI tWzLocationService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wz/tWzLocationList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzLocationEntity tWzLocation,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzLocationEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzLocation, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzLocationService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzLocationEntity tWzLocation, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
tWzLocation = systemService.getEntity(TWzLocationEntity.class, tWzLocation.getId());
message = "仓库删除成功";
try{
tWzLocationService.delete(tWzLocation);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "仓库删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "仓库删除成功";
try{
for(String id:ids.split(",")){
TWzLocationEntity tWzLocation = systemService.getEntity(TWzLocationEntity.class,
Integer.parseInt(id)
);
tWzLocationService.delete(tWzLocation);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "仓库删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzLocationEntity tWzLocation, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "仓库添加成功";
try{
tWzLocationService.save(tWzLocation);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "仓库添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzLocationEntity tWzLocation, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "仓库更新成功";
TWzLocationEntity t = tWzLocationService.get(TWzLocationEntity.class, tWzLocation.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(tWzLocation, t);
tWzLocationService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "仓库更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzLocationEntity tWzLocation, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzLocation.getId())) {
tWzLocation = tWzLocationService.getEntity(TWzLocationEntity.class, tWzLocation.getId());
req.setAttribute("tWzLocationPage", tWzLocation);
}
return new ModelAndView("com/zzjee/wz/tWzLocation-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzLocationEntity tWzLocation, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzLocation.getId())) {
tWzLocation = tWzLocationService.getEntity(TWzLocationEntity.class, tWzLocation.getId());
req.setAttribute("tWzLocationPage", tWzLocation);
}
return new ModelAndView("com/zzjee/wz/tWzLocation-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","tWzLocationController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzLocationEntity tWzLocation, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(TWzLocationEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzLocation, request.getParameterMap());
List<TWzLocationEntity> tWzLocations = this.tWzLocationService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"仓库");
modelMap.put(NormalExcelConstants.CLASS,TWzLocationEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("仓库列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,tWzLocations);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(TWzLocationEntity tWzLocation, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"仓库");
modelMap.put(NormalExcelConstants.CLASS,TWzLocationEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("仓库列表", "导出人:"+ ResourceUtil.getSessionUser().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<TWzLocationEntity> listTWzLocationEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TWzLocationEntity.class,params);
for (TWzLocationEntity tWzLocation : listTWzLocationEntitys) {
tWzLocationService.save(tWzLocation);
}
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
@ApiOperation(value="仓库列表信息",produces="application/json",httpMethod="GET")
public ResponseMessage<List<TWzLocationEntity>> list() {
List<TWzLocationEntity> listTWzLocations=tWzLocationService.getList(TWzLocationEntity.class);
return Result.success(listTWzLocations);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取仓库信息",notes="根据ID获取仓库信息",httpMethod="GET",produces="application/json")
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
TWzLocationEntity task = tWzLocationService.get(TWzLocationEntity.class, id);
if (task == null) {
return Result.error("根据ID获取仓库信息为空");
}
return Result.success(task);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建仓库")
public ResponseMessage<?> create(@ApiParam(name="仓库对象")@RequestBody TWzLocationEntity tWzLocation, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzLocationEntity>> failures = validator.validate(tWzLocation);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzLocationService.save(tWzLocation);
} catch (Exception e) {
e.printStackTrace();
return Result.error("仓库信息保存失败");
}
return Result.success(tWzLocation);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新仓库",notes="更新仓库")
public ResponseMessage<?> update(@ApiParam(name="仓库对象")@RequestBody TWzLocationEntity tWzLocation) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzLocationEntity>> failures = validator.validate(tWzLocation);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzLocationService.saveOrUpdate(tWzLocation);
} catch (Exception e) {
e.printStackTrace();
return Result.error("更新仓库信息失败");
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success("更新仓库信息成功");
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除仓库")
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
tWzLocationService.deleteEntityById(TWzLocationEntity.class, id);
} catch (Exception e) {
e.printStackTrace();
return Result.error("仓库删除失败");
}
return Result.success();
}
}

View File

@ -1,435 +0,0 @@
package com.zzjee.wz.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.md.entity.MdGoodsEntity;
import com.zzjee.md.service.MdGoodsServiceI;
import com.zzjee.wz.entity.TWzMaterialEntity;
import com.zzjee.wz.service.TWzMaterialServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.ResourceUtil;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:03
* @version V1.0
*
*/
@Api(value="TWzMaterial",description="物料",tags="tWzMaterialController")
@Controller
@RequestMapping("/tWzMaterialController")
public class TWzMaterialController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(TWzMaterialController.class);
@Autowired
private TWzMaterialServiceI tWzMaterialService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
private MdGoodsServiceI mdGoodsService;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wz/tWzMaterialList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzMaterialEntity tWzMaterial,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzMaterialEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzMaterial, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzMaterialService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzMaterialEntity tWzMaterial, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
tWzMaterial = systemService.getEntity(TWzMaterialEntity.class, tWzMaterial.getId());
message = "物料删除成功";
try{
tWzMaterialService.delete(tWzMaterial);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "物料删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "物料删除成功";
try{
for(String id:ids.split(",")){
TWzMaterialEntity tWzMaterial = systemService.getEntity(TWzMaterialEntity.class,
Integer.parseInt(id)
);
tWzMaterialService.delete(tWzMaterial);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "物料删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzMaterialEntity tWzMaterial, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "物料添加成功";
try{
tWzMaterialService.save(tWzMaterial);
MdGoodsEntity mdn = mdGoodsService.findUniqueByProperty(MdGoodsEntity.class,"shpBianMa",tWzMaterial.getMatCode());
if(mdn==null){
mdn = new MdGoodsEntity();
mdn.setShpBianMa(tWzMaterial.getMatCode());
mdn.setSuoShuKeHu(ResourceUtil.getConfigByName("default.cuscode"));
mdn.setChlShl("1");
mdn.setShpMingCheng(tWzMaterial.getMatName());
mdn.setBzhiQi("999");
mdn.setChpShuXing(tWzMaterial.getBy3());
mdn.setJshDanWei(tWzMaterial.getMatUnit());
mdn.setShlDanWei(tWzMaterial.getMatUnit());
mdn.setShpTiaoMa(tWzMaterial.getBy1());
mdn.setCfWenCeng(tWzMaterial.getBy2());
mdn.setJiZhunwendu("1");
mdn.setTiJiCm("1");
mdn.setZhlKg("1");
mdn.setChlKongZhi("N");
mdn.setJfShpLei("10");
mdn.setMpCengGao("99");
mdn.setMpDanCeng("99");
mdGoodsService.save(mdn);
}
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "物料添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzMaterialEntity tWzMaterial, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "物料更新成功";
TWzMaterialEntity t = tWzMaterialService.get(TWzMaterialEntity.class, tWzMaterial.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(tWzMaterial, t);
tWzMaterialService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "物料更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzMaterialEntity tWzMaterial, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzMaterial.getId())) {
tWzMaterial = tWzMaterialService.getEntity(TWzMaterialEntity.class, tWzMaterial.getId());
req.setAttribute("tWzMaterialPage", tWzMaterial);
}
return new ModelAndView("com/zzjee/wz/tWzMaterial-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzMaterialEntity tWzMaterial, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzMaterial.getId())) {
tWzMaterial = tWzMaterialService.getEntity(TWzMaterialEntity.class, tWzMaterial.getId());
req.setAttribute("tWzMaterialPage", tWzMaterial);
}
return new ModelAndView("com/zzjee/wz/tWzMaterial-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","tWzMaterialController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzMaterialEntity tWzMaterial, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(TWzMaterialEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzMaterial, request.getParameterMap());
List<TWzMaterialEntity> tWzMaterials = this.tWzMaterialService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"物料");
modelMap.put(NormalExcelConstants.CLASS,TWzMaterialEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("物料列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,tWzMaterials);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(TWzMaterialEntity tWzMaterial, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"物料");
modelMap.put(NormalExcelConstants.CLASS,TWzMaterialEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("物料列表", "导出人:"+ ResourceUtil.getSessionUser().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<TWzMaterialEntity> listTWzMaterialEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TWzMaterialEntity.class,params);
for (TWzMaterialEntity tWzMaterial : listTWzMaterialEntitys) {
TWzMaterialEntity t = systemService.findUniqueByProperty(TWzMaterialEntity.class,"matCode",tWzMaterial.getMatClass());
if(t!=null){
MyBeanUtils.copyBeanNotNull2Bean(tWzMaterial, t);
tWzMaterialService.updateEntitie(t);
}else{
tWzMaterialService.save(tWzMaterial);
}
}
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
@ApiOperation(value="物料列表信息",produces="application/json",httpMethod="GET")
public ResponseMessage<List<TWzMaterialEntity>> list() {
List<TWzMaterialEntity> listTWzMaterials=tWzMaterialService.getList(TWzMaterialEntity.class);
return Result.success(listTWzMaterials);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取物料信息",notes="根据ID获取物料信息",httpMethod="GET",produces="application/json")
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
TWzMaterialEntity task = tWzMaterialService.get(TWzMaterialEntity.class, id);
if (task == null) {
return Result.error("根据ID获取物料信息为空");
}
return Result.success(task);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建物料")
public ResponseMessage<?> create(@ApiParam(name="物料对象")@RequestBody TWzMaterialEntity tWzMaterial, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzMaterialEntity>> failures = validator.validate(tWzMaterial);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzMaterialService.save(tWzMaterial);
} catch (Exception e) {
e.printStackTrace();
return Result.error("物料信息保存失败");
}
return Result.success(tWzMaterial);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新物料",notes="更新物料")
public ResponseMessage<?> update(@ApiParam(name="物料对象")@RequestBody TWzMaterialEntity tWzMaterial) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzMaterialEntity>> failures = validator.validate(tWzMaterial);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzMaterialService.saveOrUpdate(tWzMaterial);
} catch (Exception e) {
e.printStackTrace();
return Result.error("更新物料信息失败");
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success("更新物料信息成功");
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除物料")
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
tWzMaterialService.deleteEntityById(TWzMaterialEntity.class, id);
} catch (Exception e) {
e.printStackTrace();
return Result.error("物料删除失败");
}
return Result.success();
}
}

View File

@ -1,422 +0,0 @@
package com.zzjee.wz.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.wz.entity.TWzSpConfEntity;
import com.zzjee.wz.service.TWzSpConfServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.ResourceUtil;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSUser;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:51
* @version V1.0
*
*/
@Api(value="TWzSpConf",description="审批配置",tags="tWzSpConfController")
@Controller
@RequestMapping("/tWzSpConfController")
public class TWzSpConfController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(TWzSpConfController.class);
@Autowired
private TWzSpConfServiceI tWzSpConfService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wz/tWzSpConfList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzSpConfEntity tWzSpConf,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzSpConfEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzSpConf, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzSpConfService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzSpConfEntity tWzSpConf, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
tWzSpConf = systemService.getEntity(TWzSpConfEntity.class, tWzSpConf.getId());
message = "审批配置删除成功";
try{
tWzSpConfService.delete(tWzSpConf);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "审批配置删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "审批配置删除成功";
try{
for(String id:ids.split(",")){
TWzSpConfEntity tWzSpConf = systemService.getEntity(TWzSpConfEntity.class,
Integer.parseInt(id)
);
tWzSpConfService.delete(tWzSpConf);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "审批配置删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzSpConfEntity tWzSpConf, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "审批配置添加成功";
try{
try{
String[] strs = tWzSpConf.getSpUsername().split(",");
//第一个分号之前的字符串自然就是数组里的第一个
String userid = strs[0];
TSUser user = systemService.get(TSUser.class,userid);
tWzSpConf.setSpUsername(user.getUserName());
}catch (Exception e){
}
tWzSpConfService.save(tWzSpConf);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "审批配置添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzSpConfEntity tWzSpConf, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "审批配置更新成功";
TWzSpConfEntity t = tWzSpConfService.get(TWzSpConfEntity.class, tWzSpConf.getId());
try {
try{
String[] strs = tWzSpConf.getSpUsername().split(",");
//第一个分号之前的字符串自然就是数组里的第一个
String userid = strs[0];
TSUser user = systemService.get(TSUser.class,userid);
tWzSpConf.setSpUsername(user.getUserName());
}catch (Exception e){
}
MyBeanUtils.copyBeanNotNull2Bean(tWzSpConf, t);
tWzSpConfService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "审批配置更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzSpConfEntity tWzSpConf, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzSpConf.getId())) {
tWzSpConf = tWzSpConfService.getEntity(TWzSpConfEntity.class, tWzSpConf.getId());
req.setAttribute("tWzSpConfPage", tWzSpConf);
}
return new ModelAndView("com/zzjee/wz/tWzSpConf-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzSpConfEntity tWzSpConf, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzSpConf.getId())) {
tWzSpConf = tWzSpConfService.getEntity(TWzSpConfEntity.class, tWzSpConf.getId());
req.setAttribute("tWzSpConfPage", tWzSpConf);
}
return new ModelAndView("com/zzjee/wz/tWzSpConf-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","tWzSpConfController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzSpConfEntity tWzSpConf, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(TWzSpConfEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzSpConf, request.getParameterMap());
List<TWzSpConfEntity> tWzSpConfs = this.tWzSpConfService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"审批配置");
modelMap.put(NormalExcelConstants.CLASS,TWzSpConfEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("审批配置列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,tWzSpConfs);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(TWzSpConfEntity tWzSpConf, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"审批配置");
modelMap.put(NormalExcelConstants.CLASS,TWzSpConfEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("审批配置列表", "导出人:"+ ResourceUtil.getSessionUser().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<TWzSpConfEntity> listTWzSpConfEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TWzSpConfEntity.class,params);
for (TWzSpConfEntity tWzSpConf : listTWzSpConfEntitys) {
tWzSpConfService.save(tWzSpConf);
}
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
@ApiOperation(value="审批配置列表信息",produces="application/json",httpMethod="GET")
public ResponseMessage<List<TWzSpConfEntity>> list() {
List<TWzSpConfEntity> listTWzSpConfs=tWzSpConfService.getList(TWzSpConfEntity.class);
return Result.success(listTWzSpConfs);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取审批配置信息",notes="根据ID获取审批配置信息",httpMethod="GET",produces="application/json")
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
TWzSpConfEntity task = tWzSpConfService.get(TWzSpConfEntity.class, id);
if (task == null) {
return Result.error("根据ID获取审批配置信息为空");
}
return Result.success(task);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建审批配置")
public ResponseMessage<?> create(@ApiParam(name="审批配置对象")@RequestBody TWzSpConfEntity tWzSpConf, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzSpConfEntity>> failures = validator.validate(tWzSpConf);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzSpConfService.save(tWzSpConf);
} catch (Exception e) {
e.printStackTrace();
return Result.error("审批配置信息保存失败");
}
return Result.success(tWzSpConf);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新审批配置",notes="更新审批配置")
public ResponseMessage<?> update(@ApiParam(name="审批配置对象")@RequestBody TWzSpConfEntity tWzSpConf) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzSpConfEntity>> failures = validator.validate(tWzSpConf);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
tWzSpConfService.saveOrUpdate(tWzSpConf);
} catch (Exception e) {
e.printStackTrace();
return Result.error("更新审批配置信息失败");
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success("更新审批配置信息成功");
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除审批配置")
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
tWzSpConfService.deleteEntityById(TWzSpConfEntity.class, id);
} catch (Exception e) {
e.printStackTrace();
return Result.error("审批配置删除失败");
}
return Result.success();
}
}

View File

@ -1,233 +0,0 @@
package com.zzjee.wz.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:41:04
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_location", schema = "")
@SuppressWarnings("serial")
public class TWzLocationEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
}

View File

@ -1,509 +0,0 @@
package com.zzjee.wz.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:03
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_material", schema = "")
@SuppressWarnings("serial")
public class TWzMaterialEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**物料编码*/
@Excel(name="物料编码",width=15)
private String matCode;
/**物料名称*/
@Excel(name="物料名称",width=15)
private String matName;
/**单位*/
@Excel(name="单位",width=15,dictTable ="ba_unit",dicCode ="UNIT_CODE",dicText ="UNIT_ZH_NAME")
private String matUnit;
/**规格*/
@Excel(name="规格",width=15)
private String matGuige;
/**等级*/
@Excel(name="等级",width=15)
private String matClass;
/**标准价元*/
@Excel(name="标准价元",width=15)
private BigDecimal matPrice;
/**安全库存*/
@Excel(name="安全库存",width=15)
private Integer matAqkc;
/**仓库*/
@Excel(name="仓库",width=15,dictTable ="t_wz_location",dicCode ="mat_location",dicText ="mat_location")
private String matLocation;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
private String by6;
private String by7;
private String by8;
private String by9;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=132)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_GUIGE",nullable=true,length=32)
public String getMatGuige(){
return this.matGuige;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatGuige(String matGuige){
this.matGuige = matGuige;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CLASS",nullable=true,length=32)
public String getMatClass(){
return this.matClass;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatClass(String matClass){
this.matClass = matClass;
}
/**
*: java.math.BigDecimal
*@return: java.math.BigDecimal
*/
@Column(name ="MAT_PRICE",nullable=true,length=32)
public BigDecimal getMatPrice(){
return this.matPrice;
}
/**
*: java.math.BigDecimal
*@param: java.math.BigDecimal
*/
public void setMatPrice(BigDecimal matPrice){
this.matPrice = matPrice;
}
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Column(name ="MAT_AQKC",nullable=true,length=32)
public Integer getMatAqkc(){
return this.matAqkc;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setMatAqkc(Integer matAqkc){
this.matAqkc = matAqkc;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="BY4",nullable=true,length=32)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="BY5",nullable=true,length=32)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
@Column(name ="BY6",nullable=true,length=32)
public String getBy6() {
return by6;
}
public void setBy6(String by6) {
this.by6 = by6;
}
@Column(name ="BY7",nullable=true,length=32)
public String getBy7() {
return by7;
}
public void setBy7(String by7) {
this.by7 = by7;
}
@Column(name ="BY8",nullable=true,length=32)
public String getBy8() {
return by8;
}
public void setBy8(String by8) {
this.by8 = by8;
}
@Column(name ="BY9",nullable=true,length=32)
public String getBy9() {
return by9;
}
public void setBy9(String by9) {
this.by9 = by9;
}
}

View File

@ -1,293 +0,0 @@
package com.zzjee.wz.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:51
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_sp_conf", schema = "")
@SuppressWarnings("serial")
public class TWzSpConfEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**审批类型*/
@Excel(name="审批类型",width=15)
private String spType;
/**最低金额*/
@Excel(name="最低金额",width=15)
private String spJine;
/**审批人*/
@Excel(name="审批人",width=15)
private String spUsername;
/**备注*/
@Excel(name="备注",width=15)
private String spRemark;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SP_TYPE",nullable=true,length=32)
public String getSpType(){
return this.spType;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSpType(String spType){
this.spType = spType;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SP_JINE",nullable=true,length=32)
public String getSpJine(){
return this.spJine;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSpJine(String spJine){
this.spJine = spJine;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SP_USERNAME",nullable=true,length=32)
public String getSpUsername(){
return this.spUsername;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSpUsername(String spUsername){
this.spUsername = spUsername;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SP_REMARK",nullable=true,length=132)
public String getSpRemark(){
return this.spRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setSpRemark(String spRemark){
this.spRemark = spRemark;
}
}

View File

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

View File

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

View File

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

View File

@ -1,144 +0,0 @@
package com.zzjee.wz.service.impl;
import com.zzjee.wz.entity.TWzLocationEntity;
import com.zzjee.wz.service.TWzLocationServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
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;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Service("tWzLocationService")
@Transactional
public class TWzLocationServiceImpl extends CommonServiceImpl implements TWzLocationServiceI {
@Override
public void delete(TWzLocationEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
@Override
public Serializable save(TWzLocationEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
@Override
public void saveOrUpdate(TWzLocationEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(TWzLocationEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(TWzLocationEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doDelBus(TWzLocationEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(TWzLocationEntity 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("bpm_status", t.getBpmStatus());
map.put("mat_location", t.getMatLocation());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,TWzLocationEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{mat_location}",String.valueOf(t.getMatLocation()));
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("t_wz_location",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -1,168 +0,0 @@
package com.zzjee.wz.service.impl;
import com.zzjee.wz.entity.TWzMaterialEntity;
import com.zzjee.wz.service.TWzMaterialServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
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;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Service("tWzMaterialService")
@Transactional
public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMaterialServiceI {
@Override
public void delete(TWzMaterialEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
@Override
public Serializable save(TWzMaterialEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
@Override
public void saveOrUpdate(TWzMaterialEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(TWzMaterialEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(TWzMaterialEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doDelBus(TWzMaterialEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(TWzMaterialEntity 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("bpm_status", t.getBpmStatus());
map.put("mat_code", t.getMatCode());
map.put("mat_name", t.getMatName());
map.put("mat_unit", t.getMatUnit());
map.put("mat_guige", t.getMatGuige());
map.put("mat_class", t.getMatClass());
map.put("mat_price", t.getMatPrice());
map.put("mat_aqkc", t.getMatAqkc());
map.put("mat_location", t.getMatLocation());
map.put("by1", t.getBy1());
map.put("by2", t.getBy2());
map.put("by3", t.getBy3());
map.put("by4", t.getBy4());
map.put("by5", t.getBy5());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql, TWzMaterialEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{mat_code}",String.valueOf(t.getMatCode()));
sql = sql.replace("#{mat_name}",String.valueOf(t.getMatName()));
sql = sql.replace("#{mat_unit}",String.valueOf(t.getMatUnit()));
sql = sql.replace("#{mat_guige}",String.valueOf(t.getMatGuige()));
sql = sql.replace("#{mat_class}",String.valueOf(t.getMatClass()));
sql = sql.replace("#{mat_price}",String.valueOf(t.getMatPrice()));
sql = sql.replace("#{mat_aqkc}",String.valueOf(t.getMatAqkc()));
sql = sql.replace("#{mat_location}",String.valueOf(t.getMatLocation()));
sql = sql.replace("#{by1}",String.valueOf(t.getBy1()));
sql = sql.replace("#{by2}",String.valueOf(t.getBy2()));
sql = sql.replace("#{by3}",String.valueOf(t.getBy3()));
sql = sql.replace("#{by4}",String.valueOf(t.getBy4()));
sql = sql.replace("#{by5}",String.valueOf(t.getBy5()));
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("t_wz_material",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -1,150 +0,0 @@
package com.zzjee.wz.service.impl;
import com.zzjee.wz.entity.TWzSpConfEntity;
import com.zzjee.wz.service.TWzSpConfServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
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;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Service("tWzSpConfService")
@Transactional
public class TWzSpConfServiceImpl extends CommonServiceImpl implements TWzSpConfServiceI {
@Override
public void delete(TWzSpConfEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
@Override
public Serializable save(TWzSpConfEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
@Override
public void saveOrUpdate(TWzSpConfEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(TWzSpConfEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(TWzSpConfEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doDelBus(TWzSpConfEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(TWzSpConfEntity 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("bpm_status", t.getBpmStatus());
map.put("sp_type", t.getSpType());
map.put("sp_jine", t.getSpJine());
map.put("sp_username", t.getSpUsername());
map.put("sp_remark", t.getSpRemark());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,TWzSpConfEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{sp_type}",String.valueOf(t.getSpType()));
sql = sql.replace("#{sp_jine}",String.valueOf(t.getSpJine()));
sql = sql.replace("#{sp_username}",String.valueOf(t.getSpUsername()));
sql = sql.replace("#{sp_remark}",String.valueOf(t.getSpRemark()));
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("t_wz_sp_conf",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -1,485 +0,0 @@
package com.zzjee.wzpo.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.wmutil.erpUtil;
import com.zzjee.wzpo.entity.PowzPage;
import com.zzjee.wzpo.entity.VWzPoWqEntity;
import com.zzjee.wzpo.service.VWzPoWqServiceI;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import com.zzjee.wzyw.service.TWzRkHeadServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.*;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.io.IOException;
import java.util.*;
/**
* @Title: Controller
* @Description: v_wz_po_wq
* @author onlineGenerator
* @date 2018-05-21 15:57:04
* @version V1.0
*
*/
@Api(value="VWzPoWq",description="v_wz_po_wq",tags="vWzPoWqController")
@Controller
@RequestMapping("/vWzPoWqController")
public class VWzPoWqController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(VWzPoWqController.class);
@Autowired
private VWzPoWqServiceI vWzPoWqService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
private TWzRkHeadServiceI tWzRkHeadService;
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wzpo/vWzPoWqList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
*/
@RequestMapping(params = "datagrid")
public void datagrid(VWzPoWqEntity vWzPoWq, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(VWzPoWqEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vWzPoWq, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.vWzPoWqService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
* /
* @param page
* @return
*/
@RequestMapping(params = "saveRows")
@ResponseBody
public AjaxJson saveRows(PowzPage page){
String message = null;
List<VWzPoWqEntity> demos=page.getDemos();
AjaxJson j = new AjaxJson();
if(CollectionUtils.isNotEmpty(demos)){
TWzRkHeadEntity tWzRkHead = new TWzRkHeadEntity();
List<TWzRkItemEntity> tWzRkItemList = new ArrayList<TWzRkItemEntity>() ;
Map<String,String> mapvendor = new HashMap<>();
for(VWzPoWqEntity jeecgDemo:demos) {
if (StringUtil.isNotEmpty(jeecgDemo.getId())) {
VWzPoWqEntity t = vWzPoWqService.get(VWzPoWqEntity.class, jeecgDemo.getId());
try {
mapvendor.put(t.getVendorCode(),t.getVendorName());
} catch (Exception e) {
}
}
}
if(mapvendor.size()>1){
j.setMsg("不同供应商不允许入库到同一个订单");
j.setSuccess(false);
return j;
}
for(VWzPoWqEntity jeecgDemo:demos){
if (StringUtil.isNotEmpty(jeecgDemo.getId())) {
VWzPoWqEntity t =vWzPoWqService.get(VWzPoWqEntity.class, jeecgDemo.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(demos, t);
tWzRkHead.setDocDate(DateUtils.getDate());
tWzRkHead.setRkRemark("采购订单入库:"+t.getPoRemark());
tWzRkHead.setVendorCode(t.getVendorCode());
tWzRkHead.setVendorName(t.getVendorName());
} catch (Exception e) {
e.printStackTrace();
}
try {
TWzRkItemEntity pogri = new TWzRkItemEntity();
pogri.setBy1(jeecgDemo.getId().toString());
pogri.setMatCode(jeecgDemo.getMatCode());
pogri.setMatName(jeecgDemo.getMatName());
pogri.setMatLocation(jeecgDemo.getMatLocation());
pogri.setMatPrice(jeecgDemo.getMatPrice());
pogri.setMatQty(jeecgDemo.getMatQtyWq().toString());
pogri.setMatBatch(jeecgDemo.getMatBatch());
pogri.setMatUnit(jeecgDemo.getMatUnit());
String res = erpUtil.geterpys(pogri.getBy1(),pogri.getMatCode(),pogri.getMatQty());
if(StringUtil.isNotEmpty(res)){
j.setMsg(res);
j.setSuccess(false);
return j;
}
tWzRkItemList.add(pogri);
} catch (Exception e) {
e.printStackTrace();
}
}
}
try {
tWzRkHeadService.addMain(tWzRkHead, tWzRkItemList);
}catch (Exception e) {
}
}
return j;
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(VWzPoWqEntity vWzPoWq, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
vWzPoWq = systemService.getEntity(VWzPoWqEntity.class, vWzPoWq.getId());
message = "v_wz_po_wq删除成功";
try{
vWzPoWqService.delete(vWzPoWq);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "v_wz_po_wq删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "v_wz_po_wq删除成功";
try{
for(String id:ids.split(",")){
VWzPoWqEntity vWzPoWq = systemService.getEntity(VWzPoWqEntity.class,
id
);
vWzPoWqService.delete(vWzPoWq);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "v_wz_po_wq删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(VWzPoWqEntity vWzPoWq, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "v_wz_po_wq添加成功";
try{
vWzPoWqService.save(vWzPoWq);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "v_wz_po_wq添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(VWzPoWqEntity vWzPoWq, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "v_wz_po_wq更新成功";
VWzPoWqEntity t = vWzPoWqService.get(VWzPoWqEntity.class, vWzPoWq.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(vWzPoWq, t);
vWzPoWqService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "v_wz_po_wq更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(VWzPoWqEntity vWzPoWq, HttpServletRequest req) {
if (StringUtil.isNotEmpty(vWzPoWq.getId())) {
vWzPoWq = vWzPoWqService.getEntity(VWzPoWqEntity.class, vWzPoWq.getId());
req.setAttribute("vWzPoWqPage", vWzPoWq);
}
return new ModelAndView("com/zzjee/wzpo/vWzPoWq-add");
}
/**
* v_wz_po_wq
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(VWzPoWqEntity vWzPoWq, HttpServletRequest req) {
if (StringUtil.isNotEmpty(vWzPoWq.getId())) {
vWzPoWq = vWzPoWqService.getEntity(VWzPoWqEntity.class, vWzPoWq.getId());
req.setAttribute("vWzPoWqPage", vWzPoWq);
}
return new ModelAndView("com/zzjee/wzpo/vWzPoWq-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","vWzPoWqController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(VWzPoWqEntity vWzPoWq, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(VWzPoWqEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vWzPoWq, request.getParameterMap());
List<VWzPoWqEntity> vWzPoWqs = this.vWzPoWqService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"v_wz_po_wq");
modelMap.put(NormalExcelConstants.CLASS, VWzPoWqEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("v_wz_po_wq列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,vWzPoWqs);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(VWzPoWqEntity vWzPoWq, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"v_wz_po_wq");
modelMap.put(NormalExcelConstants.CLASS, VWzPoWqEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("v_wz_po_wq列表", "导出人:"+ ResourceUtil.getSessionUser().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<VWzPoWqEntity> listVWzPoWqEntitys = ExcelImportUtil.importExcel(file.getInputStream(), VWzPoWqEntity.class,params);
for (VWzPoWqEntity vWzPoWq : listVWzPoWqEntitys) {
vWzPoWqService.save(vWzPoWq);
}
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
@ApiOperation(value="v_wz_po_wq列表信息",produces="application/json",httpMethod="GET")
public ResponseMessage<List<VWzPoWqEntity>> list() {
List<VWzPoWqEntity> listVWzPoWqs=vWzPoWqService.getList(VWzPoWqEntity.class);
return Result.success(listVWzPoWqs);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取v_wz_po_wq信息",notes="根据ID获取v_wz_po_wq信息",httpMethod="GET",produces="application/json")
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
VWzPoWqEntity task = vWzPoWqService.get(VWzPoWqEntity.class, id);
if (task == null) {
return Result.error("根据ID获取v_wz_po_wq信息为空");
}
return Result.success(task);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建v_wz_po_wq")
public ResponseMessage<?> create(@ApiParam(name="v_wz_po_wq对象")@RequestBody VWzPoWqEntity vWzPoWq, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<VWzPoWqEntity>> failures = validator.validate(vWzPoWq);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
vWzPoWqService.save(vWzPoWq);
} catch (Exception e) {
e.printStackTrace();
return Result.error("v_wz_po_wq信息保存失败");
}
return Result.success(vWzPoWq);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新v_wz_po_wq",notes="更新v_wz_po_wq")
public ResponseMessage<?> update(@ApiParam(name="v_wz_po_wq对象")@RequestBody VWzPoWqEntity vWzPoWq) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<VWzPoWqEntity>> failures = validator.validate(vWzPoWq);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
try{
vWzPoWqService.saveOrUpdate(vWzPoWq);
} catch (Exception e) {
e.printStackTrace();
return Result.error("更新v_wz_po_wq信息失败");
}
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success("更新v_wz_po_wq信息成功");
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除v_wz_po_wq")
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
vWzPoWqService.deleteEntityById(VWzPoWqEntity.class, id);
} catch (Exception e) {
e.printStackTrace();
return Result.error("v_wz_po_wq删除失败");
}
return Result.success();
}
}

View File

@ -1,18 +0,0 @@
package com.zzjee.wzpo.entity;
import java.util.List;
/**
*/
public class PowzPage {
private List<VWzPoWqEntity> demos;
public List<VWzPoWqEntity> getDemos() {
return demos;
}
public void setDemos(List<VWzPoWqEntity> demos) {
this.demos = demos;
}
}

View File

@ -1,308 +0,0 @@
package com.zzjee.wzpo.entity;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description: v_wz_po_wq
* @author onlineGenerator
* @date 2018-05-21 15:57:04
* @version V1.0
*
*/
@Entity
@Table(name = "v_wz_po_wq", schema = "")
@SuppressWarnings("serial")
public class VWzPoWqEntity implements java.io.Serializable {
/**id*/
private String id;
/**供应商编码*/
@Excel(name="供应商编码",width=15)
private String vendorCode;
/**供应商名称*/
@Excel(name="供应商名称",width=15)
private String vendorName;
/**采购订单日期*/
@Excel(name="采购订单日期",width=15,format = "yyyy-MM-dd")
private Date docDate;
/**采购订单备注*/
@Excel(name="采购订单备注",width=15)
private String poRemark;
/**物料编码*/
@Excel(name="物料编码",width=15)
private String matCode;
/**物料名称*/
@Excel(name="物料名称",width=15)
private String matName;
/**单位*/
@Excel(name="单位",width=15)
private String matUnit;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**批次*/
@Excel(name="批次",width=15)
private String matBatch;
/**标准价*/
@Excel(name="标准价",width=15)
private String matPrice;
/**数量*/
@Excel(name="数量",width=15)
private String matQty;
/**matQtyWq*/
// @Excel(name="matQtyWq",width=15)
private Double matQtyWq;
@Excel(name="未清数量",width=15)
private Double matQtyWq1;
/**
*: java.lang.String
*@return: java.lang.String id
*/
@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 id
*/
public void setId(String id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=32)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_BATCH",nullable=true,length=32)
public String getMatBatch(){
return this.matBatch;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatBatch(String matBatch){
this.matBatch = matBatch;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_PRICE",nullable=true,length=32)
public String getMatPrice(){
return this.matPrice;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatPrice(String matPrice){
this.matPrice = matPrice;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY",nullable=true,length=32)
public String getMatQty(){
return this.matQty;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQty(String matQty){
this.matQty = matQty;
}
/**
*: java.lang.Double
*@return: java.lang.Double matQtyWq
*/
@Column(name ="MAT_QTY_WQ",nullable=true,length=23)
public Double getMatQtyWq(){
return this.matQtyWq;
}
/**
*: java.lang.Double
*@param: java.lang.Double matQtyWq
*/
public void setMatQtyWq(Double matQtyWq){
this.matQtyWq = matQtyWq;
}
@Column(name ="MAT_QTY_WQ1",nullable=true,length=23)
public Double getMatQtyWq1(){
return this.matQtyWq1;
}
/**
*: java.lang.Double
*@param: java.lang.Double matQtyWq
*/
public void setMatQtyWq1(Double matQtyWq1){
this.matQtyWq1 = matQtyWq1;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_CODE",nullable=true,length=32)
public String getVendorCode(){
return this.vendorCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorCode(String vendorCode){
this.vendorCode = vendorCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_NAME",nullable=true,length=32)
public String getVendorName(){
return this.vendorName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorName(String vendorName){
this.vendorName = vendorName;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="DOC_DATE",nullable=true,length=32)
public Date getDocDate(){
return this.docDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setDocDate(Date docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="PO_REMARK",nullable=true,length=232)
public String getPoRemark(){
return this.poRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setPoRemark(String poRemark){
this.poRemark = poRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
}

View File

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

View File

@ -1,139 +0,0 @@
package com.zzjee.wzpo.service.impl;
import com.zzjee.wzpo.entity.VWzPoWqEntity;
import com.zzjee.wzpo.service.VWzPoWqServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
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;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Service("vWzPoWqService")
@Transactional
public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServiceI {
@Override
public void delete(VWzPoWqEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
@Override
public Serializable save(VWzPoWqEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
@Override
public void saveOrUpdate(VWzPoWqEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(VWzPoWqEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(VWzPoWqEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doDelBus(VWzPoWqEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(VWzPoWqEntity t){
Map<String,Object> map = new HashMap<String,Object>();
map.put("id", t.getId());
map.put("mat_code", t.getMatCode());
map.put("mat_name", t.getMatName());
map.put("mat_unit", t.getMatUnit());
map.put("mat_location", t.getMatLocation());
map.put("mat_batch", t.getMatBatch());
map.put("mat_price", t.getMatPrice());
map.put("mat_qty", t.getMatQty());
map.put("mat_qty_wq", t.getMatQtyWq());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,VWzPoWqEntity t){
sql = sql.replace("#{id}",String.valueOf(t.getId()));
sql = sql.replace("#{mat_code}",String.valueOf(t.getMatCode()));
sql = sql.replace("#{mat_name}",String.valueOf(t.getMatName()));
sql = sql.replace("#{mat_unit}",String.valueOf(t.getMatUnit()));
sql = sql.replace("#{mat_location}",String.valueOf(t.getMatLocation()));
sql = sql.replace("#{mat_batch}",String.valueOf(t.getMatBatch()));
sql = sql.replace("#{mat_price}",String.valueOf(t.getMatPrice()));
sql = sql.replace("#{mat_qty}",String.valueOf(t.getMatQty()));
sql = sql.replace("#{mat_qty_wq}",String.valueOf(t.getMatQtyWq()));
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("v_wz_po_wq",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -1,385 +0,0 @@
package com.zzjee.wzrepair.controller;
import com.zzjee.wzrepair.entity.TWzRepairEntity;
import com.zzjee.wzrepair.service.TWzRepairServiceI;
import org.apache.log4j.Logger;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.ResourceUtil;
import org.jeecgframework.core.util.StringUtil;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2020-02-24 11:36:29
* @version V1.0
*
*/
@Controller
@RequestMapping("/tWzRepairController")
public class TWzRepairController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(com.zzjee.wzrepair.controller.TWzRepairController.class);
@Autowired
private TWzRepairServiceI tWzRepairService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wzrepair/tWzRepairList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzRepairEntity tWzRepair,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzRepairEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzRepair, request.getParameterMap());
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzRepairService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzRepairEntity tWzRepair, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
tWzRepair = systemService.getEntity(TWzRepairEntity.class, tWzRepair.getId());
message = "交旧领新登记表删除成功";
try{
tWzRepairService.delete(tWzRepair);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "交旧领新登记表删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
String message = null;
AjaxJson j = new AjaxJson();
message = "交旧领新登记表删除成功";
try{
for(String id:ids.split(",")){
TWzRepairEntity tWzRepair = systemService.getEntity(TWzRepairEntity.class,
id
);
tWzRepairService.delete(tWzRepair);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "交旧领新登记表删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzRepairEntity tWzRepair, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "交旧领新登记表添加成功";
try{
tWzRepairService.save(tWzRepair);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "交旧领新登记表添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzRepairEntity tWzRepair, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "交旧领新登记表更新成功";
TWzRepairEntity t = tWzRepairService.get(TWzRepairEntity.class, tWzRepair.getId());
try {
MyBeanUtils.copyBeanNotNull2Bean(tWzRepair, t);
tWzRepairService.saveOrUpdate(t);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "交旧领新登记表更新失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzRepairEntity tWzRepair, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzRepair.getId())) {
tWzRepair = tWzRepairService.getEntity(TWzRepairEntity.class, tWzRepair.getId());
req.setAttribute("tWzRepairPage", tWzRepair);
}
return new ModelAndView("com/zzjee/wzrepair/tWzRepair-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzRepairEntity tWzRepair, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzRepair.getId())) {
tWzRepair = tWzRepairService.getEntity(TWzRepairEntity.class, tWzRepair.getId());
req.setAttribute("tWzRepairPage", tWzRepair);
}
return new ModelAndView("com/zzjee/wzrepair/tWzRepair-update");
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name","tWzRepairController");
return new ModelAndView("common/upload/pub_excel_upload");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzRepairEntity tWzRepair, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
CriteriaQuery cq = new CriteriaQuery(TWzRepairEntity.class, dataGrid);
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzRepair, request.getParameterMap());
List<TWzRepairEntity> tWzRepairs = this.tWzRepairService.getListByCriteriaQuery(cq,false);
modelMap.put(NormalExcelConstants.FILE_NAME,"交旧领新登记表");
modelMap.put(NormalExcelConstants.CLASS,TWzRepairEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("交旧领新登记表列表", "导出人:"+ ResourceUtil.getSessionUserName().getRealName(),
"导出信息"));
modelMap.put(NormalExcelConstants.DATA_LIST,tWzRepairs);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel 使
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(TWzRepairEntity tWzRepair, HttpServletRequest request, HttpServletResponse response
, DataGrid dataGrid, ModelMap modelMap) {
modelMap.put(NormalExcelConstants.FILE_NAME,"交旧领新登记表");
modelMap.put(NormalExcelConstants.CLASS,TWzRepairEntity.class);
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("交旧领新登记表列表", "导出人:"+ 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<TWzRepairEntity> listTWzRepairEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TWzRepairEntity.class,params);
for (TWzRepairEntity tWzRepair : listTWzRepairEntitys) {
tWzRepairService.save(tWzRepair);
}
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<TWzRepairEntity> list() {
List<TWzRepairEntity> listTWzRepairs=tWzRepairService.getList(TWzRepairEntity.class);
return listTWzRepairs;
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity<?> get(@PathVariable("id") String id) {
TWzRepairEntity task = tWzRepairService.get(TWzRepairEntity.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 TWzRepairEntity tWzRepair, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzRepairEntity>> failures = validator.validate(tWzRepair);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
tWzRepairService.save(tWzRepair);
} catch (Exception e) {
e.printStackTrace();
return new ResponseEntity(HttpStatus.NO_CONTENT);
}
//按照Restful风格约定创建指向新任务的url, 也可以直接返回id或对象.
String id = tWzRepair.getId();
URI uri = uriBuilder.path("/rest/tWzRepairController/" + 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 TWzRepairEntity tWzRepair) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzRepairEntity>> failures = validator.validate(tWzRepair);
if (!failures.isEmpty()) {
return new ResponseEntity(BeanValidators.extractPropertyAndMessage(failures), HttpStatus.BAD_REQUEST);
}
//保存
try{
tWzRepairService.saveOrUpdate(tWzRepair);
} 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) {
tWzRepairService.deleteEntityById(TWzRepairEntity.class, id);
}
}

View File

@ -1,474 +0,0 @@
package com.zzjee.wzrepair.entity;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2020-02-24 11:36:29
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_repair", schema = "")
@SuppressWarnings("serial")
public class TWzRepairEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人名称*/
@Excel(name="创建人名称")
private String createName;
/**创建人登录名称*/
@Excel(name="创建人登录名称")
private String createBy;
/**创建日期*/
@Excel(name="创建日期",format = "yyyy-MM-dd")
private Date createDate;
/**更新人名称*/
private String updateName;
/**更新人登录名称*/
private String updateBy;
/**更新日期*/
private Date updateDate;
/**所属部门*/
private String sysOrgCode;
/**所属公司*/
private String sysCompanyCode;
/**流程状态*/
private String bpmStatus;
/**物料编码*/
@Excel(name="物料编码")
private String matCode;
/**物料名称*/
@Excel(name="物料名称")
private String matName;
/**库存地点*/
@Excel(name="库存地点")
private String matLocation;
/**数量*/
@Excel(name="数量")
private String matQty;
/**规格*/
@Excel(name="规格")
private String matGuige;
/**单位*/
@Excel(name="单位")
private String matUnit;
/**原价值*/
@Excel(name="原价值")
private String matOriamount;
/**现价值*/
@Excel(name="现价值")
private String matNowamount;
/**修复时间*/
@Excel(name="修复时间")
private String repairDate;
/**修复人*/
@Excel(name="修复人")
private String repairUser;
/**验收人*/
@Excel(name="验收人")
private String qmUser;
/**修复备注*/
@Excel(name="修复备注")
private String repairRemark;
/**出库单号*/
@Excel(name="出库单号")
private String ckId;
/**出库项目*/
@Excel(name="出库项目")
private String ckItmeId;
/**
*: 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=64)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY",nullable=true,length=32)
public String getMatQty(){
return this.matQty;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQty(String matQty){
this.matQty = matQty;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_GUIGE",nullable=true,length=32)
public String getMatGuige(){
return this.matGuige;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatGuige(String matGuige){
this.matGuige = matGuige;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_ORIAMOUNT",nullable=true,length=32)
public String getMatOriamount(){
return this.matOriamount;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatOriamount(String matOriamount){
this.matOriamount = matOriamount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NOWAMOUNT",nullable=true,length=32)
public String getMatNowamount(){
return this.matNowamount;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatNowamount(String matNowamount){
this.matNowamount = matNowamount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="REPAIR_DATE",nullable=true,length=32)
public String getRepairDate(){
return this.repairDate;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRepairDate(String repairDate){
this.repairDate = repairDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="REPAIR_USER",nullable=true,length=32)
public String getRepairUser(){
return this.repairUser;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRepairUser(String repairUser){
this.repairUser = repairUser;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="QM_USER",nullable=true,length=32)
public String getQmUser(){
return this.qmUser;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setQmUser(String qmUser){
this.qmUser = qmUser;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="REPAIR_REMARK",nullable=true,length=320)
public String getRepairRemark(){
return this.repairRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRepairRemark(String repairRemark){
this.repairRemark = repairRemark;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_ID",nullable=true,length=32)
public String getCkId(){
return this.ckId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkId(String ckId){
this.ckId = ckId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_ITME_ID",nullable=true,length=32)
public String getCkItmeId(){
return this.ckItmeId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkItmeId(String ckItmeId){
this.ckItmeId = ckItmeId;
}
}

View File

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

View File

@ -1,169 +0,0 @@
package com.zzjee.wzrepair.service.impl;
import com.zzjee.wzrepair.entity.TWzRepairEntity;
import com.zzjee.wzrepair.service.TWzRepairServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
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;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Service("tWzRepairService")
@Transactional
public class TWzRepairServiceImpl extends CommonServiceImpl implements TWzRepairServiceI {
@Override
public void delete(TWzRepairEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
@Override
public Serializable save(TWzRepairEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
@Override
public void saveOrUpdate(TWzRepairEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(TWzRepairEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(TWzRepairEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doDelBus(TWzRepairEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(TWzRepairEntity 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("bpm_status", t.getBpmStatus());
map.put("mat_code", t.getMatCode());
map.put("mat_name", t.getMatName());
map.put("mat_location", t.getMatLocation());
map.put("mat_qty", t.getMatQty());
map.put("mat_guige", t.getMatGuige());
map.put("mat_unit", t.getMatUnit());
map.put("mat_oriamount", t.getMatOriamount());
map.put("mat_nowamount", t.getMatNowamount());
map.put("repair_date", t.getRepairDate());
map.put("repair_user", t.getRepairUser());
map.put("qm_user", t.getQmUser());
map.put("repair_remark", t.getRepairRemark());
map.put("ck_id", t.getCkId());
map.put("ck_itme_id", t.getCkItmeId());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,TWzRepairEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{mat_code}",String.valueOf(t.getMatCode()));
sql = sql.replace("#{mat_name}",String.valueOf(t.getMatName()));
sql = sql.replace("#{mat_location}",String.valueOf(t.getMatLocation()));
sql = sql.replace("#{mat_qty}",String.valueOf(t.getMatQty()));
sql = sql.replace("#{mat_guige}",String.valueOf(t.getMatGuige()));
sql = sql.replace("#{mat_unit}",String.valueOf(t.getMatUnit()));
sql = sql.replace("#{mat_oriamount}",String.valueOf(t.getMatOriamount()));
sql = sql.replace("#{mat_nowamount}",String.valueOf(t.getMatNowamount()));
sql = sql.replace("#{repair_date}",String.valueOf(t.getRepairDate()));
sql = sql.replace("#{repair_user}",String.valueOf(t.getRepairUser()));
sql = sql.replace("#{qm_user}",String.valueOf(t.getQmUser()));
sql = sql.replace("#{repair_remark}",String.valueOf(t.getRepairRemark()));
sql = sql.replace("#{ck_id}",String.valueOf(t.getCkId()));
sql = sql.replace("#{ck_itme_id}",String.valueOf(t.getCkItmeId()));
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("t_wz_repair",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -1,10 +0,0 @@
package com.zzjee.wzrepair.util;
public class constant {
public static final String WZ_YWLX_JJLX="交旧领新";
// 再利用程度 wz_zlycd
// 业务类型 wz_ywlx
// 出库类别 wz_cklb
}

View File

@ -1,892 +0,0 @@
package com.zzjee.wzyw.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.md.entity.MdSupEntity;
import com.zzjee.md.entity.MvGoodsEntity;
import com.zzjee.wm.entity.WmImNoticeHEntity;
import com.zzjee.wm.entity.WmImNoticeIEntity;
import com.zzjee.wm.service.WmImNoticeHServiceI;
import com.zzjee.wmutil.wmUtil;
import com.zzjee.wz.entity.TWzMaterialEntity;
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import com.zzjee.wzyw.page.TWzPoHeadPage;
import com.zzjee.wzyw.service.TWzPoHeadServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFPrintSetup;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import org.jeecgframework.core.beanvalidator.BeanValidators;
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.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.*;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @author onlineGenerator
* @version V1.0
* @Title: Controller
* @Description:
* @date 2018-05-21 13:23:13
*/
@Api(value = "TWzPoHead", description = "物料采购订单", tags = "tWzPoHeadController")
@Controller
@RequestMapping("/tWzPoHeadController")
public class TWzPoHeadController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(TWzPoHeadController.class);
@Autowired
private TWzPoHeadServiceI tWzPoHeadService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
private WmImNoticeHServiceI wmImNoticeHService;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wzyw/tWzPoHeadList");
}
@RequestMapping(params = "listsp")
public ModelAndView listsp(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wzyw/tWzPoHeadspList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzPoHeadEntity tWzPoHead, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzPoHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzPoHead);
try {
//自定义追加查询条件
} catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzPoHeadService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
@RequestMapping(params = "datagridsp")
public void datagridsp(TWzPoHeadEntity tWzPoHead, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzPoHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzPoHead);
try {
//自定义追加查询条件
cq.eq("bpmStatus", "1");
} catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzPoHeadService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzPoHeadEntity tWzPoHead, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
tWzPoHead = systemService.getEntity(TWzPoHeadEntity.class, tWzPoHead.getId());
String message = "物料采购订单删除成功";
try {
tWzPoHead.setBpmStatus("9");
systemService.saveOrUpdate(tWzPoHead);
// tWzPoHeadService.delMain(tWzPoHead);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "物料采购订单删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
String message = "物料采购订单删除成功";
try {
for (String id : ids.split(",")) {
TWzPoHeadEntity tWzPoHead = systemService.getEntity(TWzPoHeadEntity.class,
Integer.parseInt(id)
);
tWzPoHeadService.delMain(tWzPoHead);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
} catch (Exception e) {
e.printStackTrace();
message = "物料采购订单删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
@RequestMapping(params = "doPrint")
@ResponseBody
public void downReceiveExcel(String id,
HttpServletRequest request, HttpServletResponse response) {
OutputStream fileOut = null;
BufferedImage bufferImg = null;
String codedFileName = null;
TWzPoHeadEntity tWzPoHead = systemService.getEntity(TWzPoHeadEntity.class,
Integer.parseInt(id));// 获取抬头
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemEntityList = systemService.findHql(hql0, id);
try {
StringBuffer sber = new StringBuffer();
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
// 进行转码,使其支持中文文件名
codedFileName = java.net.URLEncoder.encode("中文", "UTF-8");
response.setHeader("content-disposition", "attachment;filename="
+ id + ".xls");
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("采购单");
sheet.setMargin(HSSFSheet.TopMargin, 0.2);// 页边距(上)
sheet.setMargin(HSSFSheet.BottomMargin, 0.1);// 页边距(下)
sheet.setMargin(HSSFSheet.LeftMargin, 0.8);// 页边距(左)
sheet.setMargin(HSSFSheet.RightMargin, 0.0);// 页边距(右
sheet.setColumnWidth(0, 10 * 256);
sheet.setColumnWidth(1, 35 * 256);
sheet.setColumnWidth(2, 35 * 200);
sheet.setColumnWidth(3, 35 * 256);
sheet.setColumnWidth(4, 10 * 256);
sheet.setColumnWidth(5, 10 * 256);
// sheet.setColumnWidth(6, 8 * 256);
// sheet.setColumnWidth(7, 8 * 256);
// sheet.setColumnWidth(8, 8 * 256);
// 创建第一行
Row row = sheet.createRow((short) 0); // 第一行空白
// 创建两种单元格格式
CellStyle cs = wb.createCellStyle();
CellStyle cs2 = wb.createCellStyle();
CellStyle cs3 = wb.createCellStyle();
CellStyle cs4 = wb.createCellStyle();
CellStyle cs5 = wb.createCellStyle();
// 创建两种字体
Font f = wb.createFont();
Font f2 = wb.createFont();
// 创建第一种字体样式(用于列名)
f.setFontHeightInPoints((short) 22);
f.setColor(IndexedColors.BLACK.getIndex());
f.setBoldweight(Font.BOLDWEIGHT_BOLD);
// 创建第二种字体样式(用于值)
f2.setFontHeightInPoints((short) 16);
f2.setColor(IndexedColors.BLACK.getIndex());
// Font f3=wb.createFont();
// f3.setFontHeightInPoints((short) 10);
// f3.setColor(IndexedColors.RED.getIndex());
// 设置第一种单元格的样式(用于列名)
cs.setFont(f);
cs.setBorderLeft(CellStyle.BORDER_NONE);
cs.setBorderRight(CellStyle.BORDER_NONE);
cs.setBorderTop(CellStyle.BORDER_NONE);
cs.setBorderBottom(CellStyle.BORDER_NONE);
cs.setAlignment(HSSFCellStyle.ALIGN_CENTER);
// 设置第二种单元格的样式(用于值)
cs2.setFont(f2);
cs2.setBorderLeft(CellStyle.BORDER_NONE);
cs2.setBorderRight(CellStyle.BORDER_NONE);
cs2.setBorderTop(CellStyle.BORDER_NONE);
cs2.setBorderBottom(CellStyle.BORDER_NONE);
cs2.setWrapText(true);
// cs2.setAlignment(CellStyle.BORDER_NONE);
cs3.setFont(f2);
cs3.setBorderLeft(CellStyle.BORDER_MEDIUM);
cs3.setBorderRight(CellStyle.BORDER_MEDIUM);
cs3.setBorderTop(CellStyle.BORDER_MEDIUM);
cs3.setBorderBottom(CellStyle.BORDER_MEDIUM);
// cs3.setAlignment(CellStyle.BORDER_HAIR);
cs4.setFont(f2);
cs4.setBorderTop(CellStyle.BORDER_MEDIUM);
cs4.setBorderBottom(CellStyle.BORDER_MEDIUM);
cs5.setFont(f2);
cs5.setBorderLeft(CellStyle.BORDER_NONE);
cs5.setBorderRight(CellStyle.BORDER_NONE);
cs5.setBorderTop(CellStyle.BORDER_NONE);
cs5.setBorderBottom(CellStyle.BORDER_NONE);
// cs5.setWrapText(true);
Row row1 = sheet.createRow((short) 1); // 第二行标题
row1.setHeight((short) 700);
Cell cellTitle = row1.createCell(0);
cellTitle.setCellValue(ResourceUtil.getConfigByName("comname") + "采购单");
cellTitle.setCellStyle(cs);
Row rowHead1 = sheet.createRow((short) 2); // 头部第一行
rowHead1.setHeight((short) 800);
Cell cellHead11 = rowHead1.createCell(0);
cellHead11.setCellValue("采购单号:" + id );
cellHead11.setCellStyle(cs2);
Cell cellHead12 = rowHead1.createCell(2);
cellHead12.setCellValue("采购日期:" + DateUtils.date2Str(tWzPoHead.getCreateDate(), DateUtils.date_sdf));
cellHead12.setCellStyle(cs2);
Row rowHead2 = sheet.createRow((short) 3); // 头部第二行
rowHead2.setHeight((short) 500);
Cell cellHead21 = rowHead2.createCell(0);
cellHead21.setCellValue("供应商编码:" + tWzPoHead.getVendorCode());
cellHead21.setCellStyle(cs2);
Cell cellHead23 = rowHead2.createCell(2);
cellHead23.setCellValue("供应商名称:" + tWzPoHead.getVendorName());
cellHead23.setCellStyle(cs2);
Row rowHead3 = sheet.createRow((short) 4); // 头部第三行
rowHead3.setHeight((short) 500);
Cell cellHead31 = rowHead3.createCell(0);
cellHead31.setCellValue("备注:" + tWzPoHead.getPoRemark()
);
cellHead31.setCellStyle(cs2);
Cell cellHead35 = rowHead3.createCell(2);
cellHead35.setCellValue("采购人:" + tWzPoHead.getCreateName());
cellHead35.setCellStyle(cs2);
Row rowHead4 = sheet.createRow((short) 5); // 头部第三行
Cell cellHead41 = rowHead4.createCell(0);
cellHead41.setCellValue("类型:" + tWzPoHead.getPoBy1());
cellHead41.setCellStyle(cs2);
// 合并单元格
CellRangeAddress c = new CellRangeAddress(0, 0, 0, 5); // 第一行空白
CellRangeAddress c0 = new CellRangeAddress(1, 1, 0, 5);// 第二行标题
CellRangeAddress c1 = new CellRangeAddress(2, 2, 0, 1);// 第三行通知单号
CellRangeAddress c11 = new CellRangeAddress(2, 2, 2, 5);// 第三行通知单号
CellRangeAddress c2 = new CellRangeAddress(3, 3, 0, 1);// 第四行客户
CellRangeAddress c3 = new CellRangeAddress(3, 3, 2, 5);// 第四行客户送货时间
CellRangeAddress c4 = new CellRangeAddress(4, 4, 0, 1);// 第五行客户
CellRangeAddress c5 = new CellRangeAddress(4, 4, 2, 5);// 第五行客户送货时间
CellRangeAddress c6 = new CellRangeAddress(5, 5, 0, 5); // 第一行空白
// CellRangeAddress c4 = new CellRangeAddress(4, 4, 0, 1);
// CellRangeAddress c5 = new CellRangeAddress(4, 4, 2, 3);
// CellRangeAddress c6 = new CellRangeAddress(4, 4, 4, 5);
// CellRangeAddress c7 = new CellRangeAddress(4, 4, 6, 6);
sheet.addMergedRegion(c);
sheet.addMergedRegion(c0);
sheet.addMergedRegion(c1);
sheet.addMergedRegion(c2);
sheet.addMergedRegion(c3);
sheet.addMergedRegion(c4);
sheet.addMergedRegion(c5);
sheet.addMergedRegion(c11);
sheet.addMergedRegion(c6);
Row rowColumnName = sheet.createRow((short) 7); // 列名
rowColumnName.setHeight((short) 500);
String[] columnNames = {"序号", "物料编码", "物料名称", "数量", "单位",
"备注"};
for (int i = 0; i < columnNames.length; i++) {
Cell cell = rowColumnName.createCell(i);
cell.setCellValue(columnNames[i]);
cell.setCellStyle(cs3);
}
int cellsNum = 7;
int cerconNo = 1;
for (int i = 0; i < tWzPoItemEntityList.size(); i++) {
TWzPoItemEntity entity = tWzPoItemEntityList.get(i);
cellsNum++;
Row rowColumnValue = sheet.createRow((short) cellsNum); // 列名
rowColumnValue.setHeight((short) 500);
Cell cell1 = rowColumnValue.createCell(0);
cell1.setCellValue(cerconNo);
cell1.setCellStyle(cs3);
Cell cell2 = rowColumnValue.createCell(1);
try {
cell2.setCellStyle(cs3);
cell2.setCellValue(entity.getMatCode());
} catch (Exception e) {
}
try {
Cell cell3 = rowColumnValue.createCell(2);
cell3.setCellValue(entity.getMatName());
cell3.setCellStyle(cs3);
} catch (Exception e) {
}
try {
Cell cell4 = rowColumnValue.createCell(3);
cell4.setCellValue(StringUtil.moneyToString(entity.getMatQty(),"#.0000"));
cell4.setCellStyle(cs3);
} catch (Exception e) {
}
try {
Cell cell5 = rowColumnValue.createCell(4);
cell5.setCellValue(entity.getMatUnit());
cell5.setCellStyle(cs3);
} catch (Exception e) {
}
;
try {
Cell cell6 = rowColumnValue.createCell(5);
cell6.setCellValue(entity.getItemRemark());
cell6.setCellStyle(cs3);
} catch (Exception e) {
}
cerconNo++;
}
Row rowColumnInfo = sheet.createRow((short) 2 + cellsNum); // 列名
Cell cellrow = rowColumnInfo.createCell(0);
cellrow.setCellValue("采购人: 审批人: 主管:");
cellrow.setCellStyle(cs5);
// rowColumnInfo.createCell(0).setCellValue(
// "领用人: 仓管: 主管: ");
// CellRangeAddress c15 = new CellRangeAddress(10 + cellsNum,
// 10 + cellsNum, 0, 5);
// sheet.addMergedRegion(c15);
fileOut = response.getOutputStream();
HSSFPrintSetup printSetup = sheet.getPrintSetup();
printSetup.setPaperSize(HSSFPrintSetup.A5_PAPERSIZE);
printSetup.setLandscape(true);
wb.write(fileOut);
} catch (Exception e) {
e.printStackTrace();
} finally {
if (fileOut != null) {
try {
fileOut.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
/**
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzPoHeadEntity tWzPoHead, TWzPoHeadPage tWzPoHeadPage, HttpServletRequest request) {
List<TWzPoItemEntity> tWzPoItemList = tWzPoHeadPage.getTWzPoItemList();
AjaxJson j = new AjaxJson();
String message = "添加成功";
try {
tWzPoHead.setBpmStatus("1");
tWzPoHeadService.addMain(tWzPoHead, tWzPoItemList);
String poid = tWzPoHead.getId().toString();
String cusCode = "";
List<WmImNoticeHEntity> wmimh = systemService.findByProperty(WmImNoticeHEntity.class, "imCusCode", poid);
if (wmimh != null && wmimh.size() > 0) {
message = "生成入库通知失败,请手工录入入库通知";
j.setMsg(message);
return j;
}
List<WmImNoticeIEntity> wmImNoticeIListnew = new ArrayList<WmImNoticeIEntity>();
for (TWzPoItemEntity page : tWzPoItemList) {
WmImNoticeIEntity wmi = new WmImNoticeIEntity();
wmi.setGoodsCode(page.getMatCode());
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(
MvGoodsEntity.class, "goodsCode", wmi.getGoodsCode());
if (mvgoods != null) {
cusCode = mvgoods.getCusCode();
wmi.setGoodsName(mvgoods.getGoodsName());
wmi.setGoodsUnit(mvgoods.getShlDanWei());
}
try {
wmi.setGoodsCount(page.getMatQty());
String[] args = page.getMatQty().split("\\.");
wmi.setGoodsCount(args[0]);
} catch (Exception e) {
}
wmi.setOtherId(page.getId());
wmImNoticeIListnew.add(wmi);
}
WmImNoticeHEntity wmImNoticeH = new WmImNoticeHEntity();
wmImNoticeH.setOrderTypeCode("01");
String noticeid = wmUtil.getNextNoticeid(wmImNoticeH.getOrderTypeCode());
wmImNoticeH.setCusCode(cusCode);
wmImNoticeH.setNoticeId(noticeid);
wmImNoticeH.setImData(tWzPoHead.getDocDate());
// wmImNoticeH.setPlatformCode(pageheader.getCusCode());
wmImNoticeH.setImBeizhu(tWzPoHead.getPoRemark());
wmImNoticeH.setSupCode(tWzPoHead.getVendorCode());
MdSupEntity mdsup = systemService.findUniqueByProperty(MdSupEntity.class, "gysBianMa", wmImNoticeH.getSupCode());
if (mdsup != null) {
wmImNoticeH.setSupName(mdsup.getZhongWenQch());
}
wmImNoticeH.setImCusCode(poid);
wmImNoticeHService.addMain(wmImNoticeH, wmImNoticeIListnew);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "物料采购订单添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doUpdatesp")
@ResponseBody
public AjaxJson doUpdatesp(String id, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
String message = "审批成功";
try {
TWzPoHeadEntity tWzPoHead = systemService.get(TWzPoHeadEntity.class, Integer.parseInt(id));
tWzPoHead.setBpmStatus("2");
//===================================================================================
//查询-采购订单行项目
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
try {
List<TWzPoItemEntity> tWzPoItemEntityList = systemService.findHql(hql0, id.toString());
for (TWzPoItemEntity page : tWzPoItemEntityList) {
TWzMaterialEntity wz = systemService.findUniqueByProperty(TWzMaterialEntity.class, "matCode", page.getMatCode());
try {
if (!StringUtil.isEmpty(page.getMatPrice())) {
wz.setMatPrice(new BigDecimal(page.getMatPrice()));
systemService.updateEntitie(wz);
}
} catch (Exception e) {
}
}
} catch (Exception e) {
}
systemService.saveOrUpdate(tWzPoHead);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "审批失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doUpdatecom")
@ResponseBody
public AjaxJson doUpdatecom(String id, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
String message = "完成成功";
try {
TWzPoHeadEntity tWzPoHead = systemService.get(TWzPoHeadEntity.class, Integer.parseInt(id));
tWzPoHead.setBpmStatus("3");
systemService.saveOrUpdate(tWzPoHead);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "完成失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzPoHeadEntity tWzPoHead, TWzPoHeadPage tWzPoHeadPage, HttpServletRequest request) {
List<TWzPoItemEntity> tWzPoItemList = tWzPoHeadPage.getTWzPoItemList();
AjaxJson j = new AjaxJson();
String message = "更新成功";
try {
tWzPoHeadService.updateMain(tWzPoHead, tWzPoItemList);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "更新物料采购订单失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzPoHeadEntity tWzPoHead, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzPoHead.getId())) {
tWzPoHead = tWzPoHeadService.getEntity(TWzPoHeadEntity.class, tWzPoHead.getId());
req.setAttribute("tWzPoHeadPage", tWzPoHead);
}
return new ModelAndView("com/zzjee/wzyw/tWzPoHead-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzPoHeadEntity tWzPoHead, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzPoHead.getId())) {
tWzPoHead = tWzPoHeadService.getEntity(TWzPoHeadEntity.class, tWzPoHead.getId());
req.setAttribute("tWzPoHeadPage", tWzPoHead);
}
return new ModelAndView("com/zzjee/wzyw/tWzPoHead-update");
}
/**
* []
*
* @return
*/
@RequestMapping(params = "tWzPoItemList")
public ModelAndView tWzPoItemList(TWzPoHeadEntity tWzPoHead, HttpServletRequest req) {
//===================================================================================
//获取参数
Object id0 = tWzPoHead.getId();
//===================================================================================
//查询-采购订单行项目
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
try {
List<TWzPoItemEntity> tWzPoItemEntityList = systemService.findHql(hql0, id0);
req.setAttribute("tWzPoItemList", tWzPoItemEntityList);
} catch (Exception e) {
logger.info(e.getMessage());
}
return new ModelAndView("com/zzjee/wzyw/tWzPoItemList");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzPoHeadEntity tWzPoHead, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid, ModelMap map) {
CriteriaQuery cq = new CriteriaQuery(TWzPoHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzPoHead);
try {
//自定义追加查询条件
} catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
List<TWzPoHeadEntity> list = this.tWzPoHeadService.getListByCriteriaQuery(cq, false);
List<TWzPoHeadPage> pageList = new ArrayList<TWzPoHeadPage>();
if (list != null && list.size() > 0) {
for (TWzPoHeadEntity entity : list) {
try {
TWzPoHeadPage page = new TWzPoHeadPage();
MyBeanUtils.copyBeanNotNull2Bean(entity, page);
Object id0 = entity.getId();
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemEntityList = systemService.findHql(hql0, id0.toString());
page.setTWzPoItemList(tWzPoItemEntityList);
pageList.add(page);
} catch (Exception e) {
logger.info(e.getMessage());
}
}
}
map.put(NormalExcelConstants.FILE_NAME, "采购订单");
map.put(NormalExcelConstants.CLASS, TWzPoHeadPage.class);
map.put(NormalExcelConstants.PARAMS, new ExportParams("采购订单列表", "导出人:" + ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST, pageList);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel
*
* @param request
* @param
* @return
*/
@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(2);
params.setNeedSave(true);
try {
List<TWzPoHeadPage> list = ExcelImportUtil.importExcel(file.getInputStream(), TWzPoHeadPage.class, params);
TWzPoHeadEntity entity1 = null;
for (TWzPoHeadPage page : list) {
entity1 = new TWzPoHeadEntity();
MyBeanUtils.copyBeanNotNull2Bean(page, entity1);
tWzPoHeadService.addMain(entity1, page.getTWzPoItemList());
}
j.setMsg("文件导入成功!");
} catch (Exception e) {
j.setMsg("文件导入失败!");
logger.error(ExceptionUtil.getExceptionMessage(e));
} finally {
try {
file.getInputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return j;
}
/**
* excel 使
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(ModelMap map) {
map.put(NormalExcelConstants.FILE_NAME, "物料采购订单");
map.put(NormalExcelConstants.CLASS, TWzPoHeadPage.class);
map.put(NormalExcelConstants.PARAMS, new ExportParams("物料采购订单列表", "导出人:" + ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST, new ArrayList());
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name", "tWzPoHeadController");
return new ModelAndView("common/upload/pub_excel_upload");
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "物料采购订单列表信息", produces = "application/json", httpMethod = "GET")
public ResponseMessage<List<TWzPoHeadPage>> list() {
List<TWzPoHeadEntity> list = tWzPoHeadService.getList(TWzPoHeadEntity.class);
List<TWzPoHeadPage> pageList = new ArrayList<TWzPoHeadPage>();
if (list != null && list.size() > 0) {
for (TWzPoHeadEntity entity : list) {
try {
TWzPoHeadPage page = new TWzPoHeadPage();
MyBeanUtils.copyBeanNotNull2Bean(entity, page);
Object id0 = entity.getId();
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemOldList = this.tWzPoHeadService.findHql(hql0, id0);
page.setTWzPoItemList(tWzPoItemOldList);
pageList.add(page);
} catch (Exception e) {
logger.info(e.getMessage());
}
}
}
return Result.success(pageList);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "根据ID获取物料采购订单信息", notes = "根据ID获取物料采购订单信息", httpMethod = "GET", produces = "application/json")
public ResponseMessage<?> get(@ApiParam(required = true, name = "id", value = "ID") @PathVariable("id") String id) {
TWzPoHeadEntity task = tWzPoHeadService.get(TWzPoHeadEntity.class, id);
if (task == null) {
return Result.error("根据ID获取物料采购订单信息为空");
}
TWzPoHeadPage page = new TWzPoHeadPage();
try {
MyBeanUtils.copyBeanNotNull2Bean(task, page);
Object id0 = task.getId();
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemOldList = this.tWzPoHeadService.findHql(hql0, id0);
page.setTWzPoItemList(tWzPoItemOldList);
} catch (Exception e) {
e.printStackTrace();
}
return Result.success(page);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value = "创建物料采购订单")
public ResponseMessage<?> create(@ApiParam(name = "物料采购订单对象") @RequestBody TWzPoHeadPage tWzPoHeadPage, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzPoHeadPage>> failures = validator.validate(tWzPoHeadPage);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
List<TWzPoItemEntity> tWzPoItemList = tWzPoHeadPage.getTWzPoItemList();
TWzPoHeadEntity tWzPoHead = new TWzPoHeadEntity();
try {
MyBeanUtils.copyBeanNotNull2Bean(tWzPoHeadPage, tWzPoHead);
} catch (Exception e) {
logger.info(e.getMessage());
return Result.error("保存物料采购订单失败");
}
tWzPoHeadService.addMain(tWzPoHead, tWzPoItemList);
return Result.success(tWzPoHead);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value = "更新物料采购订单", notes = "更新物料采购订单")
public ResponseMessage<?> update(@RequestBody TWzPoHeadPage tWzPoHeadPage) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzPoHeadPage>> failures = validator.validate(tWzPoHeadPage);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
List<TWzPoItemEntity> tWzPoItemList = tWzPoHeadPage.getTWzPoItemList();
TWzPoHeadEntity tWzPoHead = new TWzPoHeadEntity();
try {
MyBeanUtils.copyBeanNotNull2Bean(tWzPoHeadPage, tWzPoHead);
} catch (Exception e) {
logger.info(e.getMessage());
return Result.error("物料采购订单更新失败");
}
tWzPoHeadService.updateMain(tWzPoHead, tWzPoItemList);
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success();
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value = "删除物料采购订单")
public ResponseMessage<?> delete(@ApiParam(name = "id", value = "ID", required = true) @PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
TWzPoHeadEntity tWzPoHead = tWzPoHeadService.get(TWzPoHeadEntity.class, id);
tWzPoHeadService.delMain(tWzPoHead);
} catch (Exception e) {
e.printStackTrace();
return Result.error("物料采购订单删除失败");
}
return Result.success();
}
}

View File

@ -1,882 +0,0 @@
package com.zzjee.wzyw.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.util.ReportUtils;
import com.zzjee.wz.entity.TWzMaterialEntity;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemDto;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import com.zzjee.wzyw.page.TWzRkHeadPage;
import com.zzjee.wzyw.service.TWzRkHeadServiceI;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFPrintSetup;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import org.jeecgframework.core.common.controller.BaseController;
import org.jeecgframework.core.common.dao.jdbc.JdbcDao;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
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.*;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
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.vo.NormalExcelConstants;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
*
*/
@Api(value="TWzRkHead",description="入库抬头",tags="tWzRkHeadController")
@Controller
@RequestMapping("/tWzRkHeadController")
public class TWzRkHeadController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(TWzRkHeadController.class);
@Autowired
private TWzRkHeadServiceI tWzRkHeadService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
JdbcDao jdbcDao;
/**
*
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/zzjee/wzyw/tWzRkHeadList");
}
/**
* easyui AJAX
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(TWzRkHeadEntity tWzRkHead,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
CriteriaQuery cq = new CriteriaQuery(TWzRkHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzRkHead);
try{
//自定义追加查询条件
String query_docDate_begin = request.getParameter("docDate_begin");
String query_docDate_end = request.getParameter("docDate_end");
String status = request.getParameter("status");
if(StringUtil.isNotEmpty(status)){
cq.ge("bpmStatus",status);
}
if(StringUtil.isNotEmpty(query_docDate_begin)){
cq.ge("docDate", new SimpleDateFormat("yyyy-MM-dd").parse(query_docDate_begin));
}
if(StringUtil.isNotEmpty(query_docDate_end)){
cq.le("docDate", new SimpleDateFormat("yyyy-MM-dd").parse(query_docDate_end));
}
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
this.tWzRkHeadService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ResponseBody
public AjaxJson doDel(TWzRkHeadEntity tWzRkHead, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
tWzRkHead = systemService.getEntity(TWzRkHeadEntity.class, tWzRkHead.getId());
String message = "入库抬头删除成功";
try{
tWzRkHeadService.delMain(tWzRkHead);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "入库抬头删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
AjaxJson j = new AjaxJson();
String message = "入库抬头删除成功";
try{
for(String id:ids.split(",")){
TWzRkHeadEntity tWzRkHead = systemService.getEntity(TWzRkHeadEntity.class,
Integer.parseInt(id)
);
tWzRkHeadService.delMain(tWzRkHead);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
}catch(Exception e){
e.printStackTrace();
message = "入库抬头删除失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzRkHeadEntity tWzRkHead, TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
AjaxJson j = new AjaxJson();
String message = "添加成功";
try{
// try{
//
// for (TWzRkItemEntity page : tWzRkItemList) {
// TWzMaterialEntity wz = systemService.findUniqueByProperty(TWzMaterialEntity.class,"matCode",page.getMatCode());
// try{
// if(!StringUtil.isEmpty(page.getMatPrice())){
// wz.setMatPrice(new BigDecimal(page.getMatPrice()));
// systemService.updateEntitie(wz);
// }
// }catch (Exception e){
// }
// }
// }catch (Exception e){
//
// }
tWzRkHeadService.addMain(tWzRkHead, tWzRkItemList);
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "入库抬头添加失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzRkHeadEntity tWzRkHead, TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
AjaxJson j = new AjaxJson();
String message = "更新成功";
try{
tWzRkHeadService.updateMain(tWzRkHead, tWzRkItemList);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "更新入库抬头失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "goAdd")
public ModelAndView goAdd(TWzRkHeadEntity tWzRkHead, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzRkHead.getId())) {
tWzRkHead = tWzRkHeadService.getEntity(TWzRkHeadEntity.class, tWzRkHead.getId());
req.setAttribute("tWzRkHeadPage", tWzRkHead);
}
return new ModelAndView("com/zzjee/wzyw/tWzRkHead-add");
}
/**
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
public ModelAndView goUpdate(TWzRkHeadEntity tWzRkHead, HttpServletRequest req) {
if (StringUtil.isNotEmpty(tWzRkHead.getId())) {
tWzRkHead = tWzRkHeadService.getEntity(TWzRkHeadEntity.class, tWzRkHead.getId());
req.setAttribute("tWzRkHeadPage", tWzRkHead);
}
return new ModelAndView("com/zzjee/wzyw/tWzRkHead-update");
}
/**
* []
*
* @return
*/
@RequestMapping(params = "tWzRkItemList")
public ModelAndView tWzRkItemList(TWzRkHeadEntity tWzRkHead, HttpServletRequest req) {
//===================================================================================
//获取参数
Object id0 = tWzRkHead.getId();
//===================================================================================
//查询-入库商品
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
try{
List<TWzRkItemEntity> tWzRkItemEntityList = systemService.findHql(hql0,id0);
req.setAttribute("tWzRkItemList", tWzRkItemEntityList);
}catch(Exception e){
logger.info(e.getMessage());
}
return new ModelAndView("com/zzjee/wzyw/tWzRkItemList");
}
/**
* []
*
* @return
*/
@RequestMapping(params = "tWzRkItemListUnEdit")
public ModelAndView tWzRkItemListUnEdit(TWzRkHeadEntity tWzRkHead, HttpServletRequest req) {
//===================================================================================
//获取参数
Object id0 = tWzRkHead.getId();
//===================================================================================
//查询-入库商品
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
try{
List<TWzRkItemEntity> tWzRkItemEntityList = systemService.findHql(hql0,id0);
req.setAttribute("tWzRkItemList", tWzRkItemEntityList);
}catch(Exception e){
logger.info(e.getMessage());
}
return new ModelAndView("com/zzjee/wzyw/tWzRkItemListUnEdit");
}
/**
* excel
*
* @param request
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzRkHeadEntity tWzRkHead, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid, ModelMap map) {
CriteriaQuery cq = new CriteriaQuery(TWzRkHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzRkHead);
try{
//自定义追加查询条件
}catch (Exception e) {
throw new BusinessException(e.getMessage());
}
cq.add();
List<TWzRkHeadEntity> list=this.tWzRkHeadService.getListByCriteriaQuery(cq, false);
List<TWzRkHeadPage> pageList=new ArrayList<TWzRkHeadPage>();
if(list!=null&&list.size()>0){
for(TWzRkHeadEntity entity:list){
try{
TWzRkHeadPage page=new TWzRkHeadPage();
MyBeanUtils.copyBeanNotNull2Bean(entity,page);
Object id0 = entity.getId();
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
List<TWzRkItemEntity> tWzRkItemEntityList = systemService.findHql(hql0,id0.toString());
page.setTWzRkItemList(tWzRkItemEntityList);
pageList.add(page);
}catch(Exception e){
logger.info(e.getMessage());
}
}
}
map.put(NormalExcelConstants.FILE_NAME,"入库抬头");
map.put(NormalExcelConstants.CLASS, TWzRkHeadPage.class);
map.put(NormalExcelConstants.PARAMS,new ExportParams("入库抬头列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST,pageList);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
* excel
* @param request
* @param
* @return
*/
@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(2);
params.setNeedSave(true);
try {
List<TWzRkHeadPage> list = ExcelImportUtil.importExcel(file.getInputStream(), TWzRkHeadPage.class, params);
TWzRkHeadEntity entity1=null;
for (TWzRkHeadPage page : list) {
entity1=new TWzRkHeadEntity();
MyBeanUtils.copyBeanNotNull2Bean(page,entity1);
tWzRkHeadService.addMain(entity1, page.getTWzRkItemList());
}
j.setMsg("文件导入成功!");
} catch (Exception e) {
j.setMsg("文件导入失败!");
logger.error(ExceptionUtil.getExceptionMessage(e));
}finally{
try {
file.getInputStream().close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return j;
}
/**
* excel 使
*/
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(ModelMap map) {
map.put(NormalExcelConstants.FILE_NAME,"入库抬头");
map.put(NormalExcelConstants.CLASS, TWzRkHeadPage.class);
map.put(NormalExcelConstants.PARAMS,new ExportParams("入库抬头列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST,new ArrayList());
return NormalExcelConstants.JEECG_EXCEL_VIEW;
}
/**
*
*
* @return
*/
@RequestMapping(params = "upload")
public ModelAndView upload(HttpServletRequest req) {
req.setAttribute("controller_name", "tWzRkHeadController");
return new ModelAndView("common/upload/pub_excel_upload");
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="入库抬头列表信息",produces="application/json",httpMethod="GET")
public ResponseMessage<List<TWzRkHeadPage>> list() {
List<TWzRkHeadEntity> list= tWzRkHeadService.getList(TWzRkHeadEntity.class);
List<TWzRkHeadPage> pageList=new ArrayList<TWzRkHeadPage>();
if(list!=null&&list.size()>0){
for(TWzRkHeadEntity entity:list){
try{
TWzRkHeadPage page=new TWzRkHeadPage();
MyBeanUtils.copyBeanNotNull2Bean(entity,page);
Object id0 = entity.getId();
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
List<TWzRkItemEntity> tWzRkItemOldList = this.tWzRkHeadService.findHql(hql0,id0);
page.setTWzRkItemList(tWzRkItemOldList);
pageList.add(page);
}catch(Exception e){
logger.info(e.getMessage());
}
}
}
return Result.success(pageList);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取入库抬头信息",notes="根据ID获取入库抬头信息",httpMethod="GET",produces="application/json")
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
TWzRkHeadEntity task = tWzRkHeadService.get(TWzRkHeadEntity.class, id);
if (task == null) {
return Result.error("根据ID获取入库抬头信息为空");
}
TWzRkHeadPage page = new TWzRkHeadPage();
try {
MyBeanUtils.copyBeanNotNull2Bean(task, page);
Object id0 = task.getId();
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
List<TWzRkItemEntity> tWzRkItemOldList = this.tWzRkHeadService.findHql(hql0,id0);
page.setTWzRkItemList(tWzRkItemOldList);
} catch (Exception e) {
e.printStackTrace();
}
return Result.success(page);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建入库抬头")
public ResponseMessage<?> create(@ApiParam(name="入库抬头对象")@RequestBody TWzRkHeadPage tWzRkHeadPage, UriComponentsBuilder uriBuilder) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzRkHeadPage>> failures = validator.validate(tWzRkHeadPage);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
TWzRkHeadEntity tWzRkHead = new TWzRkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzRkHeadPage,tWzRkHead);
}catch(Exception e){
logger.info(e.getMessage());
return Result.error("保存入库抬头失败");
}
tWzRkHeadService.addMain(tWzRkHead, tWzRkItemList);
return Result.success(tWzRkHead);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新入库抬头",notes="更新入库抬头")
public ResponseMessage<?> update(@RequestBody TWzRkHeadPage tWzRkHeadPage) {
//调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
Set<ConstraintViolation<TWzRkHeadPage>> failures = validator.validate(tWzRkHeadPage);
if (!failures.isEmpty()) {
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
}
//保存
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
TWzRkHeadEntity tWzRkHead = new TWzRkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzRkHeadPage,tWzRkHead);
}catch(Exception e){
logger.info(e.getMessage());
return Result.error("入库抬头更新失败");
}
tWzRkHeadService.updateMain(tWzRkHead, tWzRkItemList);
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success();
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除入库抬头")
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
logger.info("delete[{}]" + id);
// 验证
if (StringUtils.isEmpty(id)) {
return Result.error("ID不能为空");
}
try {
TWzRkHeadEntity tWzRkHead = tWzRkHeadService.get(TWzRkHeadEntity.class, id);
tWzRkHeadService.delMain(tWzRkHead);
} catch (Exception e) {
e.printStackTrace();
return Result.error("入库抬头删除失败");
}
return Result.success();
}
@RequestMapping(params = "doPrint")
@ResponseBody
public void downReceiveExcel(String id,
HttpServletRequest request, HttpServletResponse response){
OutputStream fileOut = null;
BufferedImage bufferImg = null;
String codedFileName = null;
TWzRkHeadEntity tWzRkHead = systemService.getEntity(TWzRkHeadEntity.class,
Integer.parseInt(id));// 获取抬头
String sql = "select r.id,CONCAT(r.mat_code,'/',r.mat_name) AS mat_name,(SELECT m.mat_guige FROM t_wz_material m WHERE m.mat_location = r.mat_location AND m.mat_code = r.mat_code) spec," +
"r.mat_unit,r.mat_location,r.mat_qty,r.mat_price,(r.mat_price * r.mat_qty) AS mat_amount from t_wz_rk_item r WHERE r.wzrk_hid = " + id;
List<TWzRkItemDto> tWzRkItemOldList = jdbcDao.find(sql,TWzRkItemDto.class,null);
try {
StringBuffer sber = new StringBuffer();
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
// 进行转码,使其支持中文文件名
codedFileName = java.net.URLEncoder.encode("中文", "UTF-8");
response.setHeader("content-disposition", "attachment;filename="
+ id + ".xls");
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("入库单");
sheet.setMargin(HSSFSheet.TopMargin,0.5);// 页边距(上)
sheet.setMargin(HSSFSheet.BottomMargin,0.5);// 页边距(下)
sheet.setMargin(HSSFSheet.LeftMargin,0.8);// 页边距(左)
sheet.setMargin(HSSFSheet.RightMargin,0.5);// 页边距(右
sheet.setColumnWidth(0, 5 * 256);
sheet.setColumnWidth(1, 15 * 256);
sheet.setColumnWidth(2, 10 * 200);
sheet.setColumnWidth(3, 5 * 256);
sheet.setColumnWidth(4, 10 * 256);
sheet.setColumnWidth(5, 10 * 256);
sheet.setColumnWidth(6, 10 * 256);
sheet.setColumnWidth(7, 10 * 256);
sheet.setColumnWidth(8, 15 * 256);
// { "序号", "编码/商品名称", "规格", "单位", "仓库","数量","单价","金额","备注" }
// sheet.setColumnWidth(6, 8 * 256);
// sheet.setColumnWidth(7, 8 * 256);
// sheet.setColumnWidth(8, 8 * 256);
// 创建第一行
Row row = sheet.createRow((short) 0); // 第一行空白
// 创建两种单元格格式
CellStyle cs = wb.createCellStyle();
CellStyle cs2 = wb.createCellStyle();
CellStyle cs3 = wb.createCellStyle();
CellStyle cs4 = wb.createCellStyle();
CellStyle cs5 = wb.createCellStyle();
// 创建两种字体
Font f = wb.createFont();
Font f2 = wb.createFont();
// 创建第一种字体样式(用于列名)
f.setFontHeightInPoints((short) 12);
f.setColor(IndexedColors.BLACK.getIndex());
f.setBoldweight(Font.BOLDWEIGHT_BOLD);
// 创建第二种字体样式(用于值)
f2.setFontHeightInPoints((short) 8);
f2.setColor(IndexedColors.BLACK.getIndex());
// 设置第一种单元格的样式(用于列名)
cs.setFont(f);
cs.setBorderLeft(CellStyle.BORDER_NONE);
cs.setBorderRight(CellStyle.BORDER_NONE);
cs.setBorderTop(CellStyle.BORDER_NONE);
cs.setBorderBottom(CellStyle.BORDER_NONE);
cs.setAlignment(HSSFCellStyle.ALIGN_CENTER);
// 设置第二种单元格的样式(用于值)
cs2.setFont(f2);
cs2.setBorderLeft(CellStyle.BORDER_NONE);
cs2.setBorderRight(CellStyle.BORDER_NONE);
cs2.setBorderTop(CellStyle.BORDER_NONE);
cs2.setBorderBottom(CellStyle.BORDER_NONE);
cs2.setWrapText(true);
// 设置第三种单元格的样式
cs3.setFont(f2);
cs3.setBorderLeft(CellStyle.BORDER_THIN);
cs3.setBorderRight(CellStyle.BORDER_THIN);
cs3.setBorderTop(CellStyle.BORDER_THIN);
cs3.setBorderBottom(CellStyle.BORDER_THIN);
cs3.setAlignment(HSSFCellStyle.ALIGN_CENTER); // 居中
// 设置第四种单元格的样式
cs4.setFont(f2);
cs4.setBorderLeft(CellStyle.BORDER_THIN);
cs4.setBorderRight(CellStyle.BORDER_THIN);
cs4.setBorderTop(CellStyle.BORDER_THIN);
cs4.setBorderBottom(CellStyle.BORDER_THIN);
// 设置第五种单元格的样式
cs5.setFont(f2);
cs5.setBorderLeft(CellStyle.BORDER_NONE);
cs5.setBorderRight(CellStyle.BORDER_NONE);
cs5.setBorderTop(CellStyle.BORDER_NONE);
cs5.setBorderBottom(CellStyle.BORDER_NONE);
Row row1 = sheet.createRow((short) 1); // 第二行标题
row1.setHeight((short) 700);
Cell cellTitle = row1.createCell(0);
cellTitle.setCellValue(ResourceUtil.getConfigByName("comname")+"采购入库单");
cellTitle.setCellStyle(cs);
Row row2 = sheet.createRow((short) 2); // 第三行
row2.setHeight((short) 500);
Cell cell21 = row2.createCell(0);
cell21.setCellValue("供应商:" + tWzRkHead.getVendorName());
cell21.setCellStyle(cs2);
Cell cell22 = row2.createCell(3);
cell22.setCellValue("单据日期:" + DateUtils.date2Str(tWzRkHead.getDocDate(), DateUtils.date_sdf));
cell22.setCellStyle(cs2);
Cell cell23 = row2.createCell(6);
cell23.setCellValue("入库单号:" + tWzRkHead.getId());
cell23.setCellStyle(cs2);
// 合并单元格
CellRangeAddress c = new CellRangeAddress(0, 0, 0, 8); // 第一行空白
CellRangeAddress c0 = new CellRangeAddress(1, 1, 0, 8);// 第二行标题
CellRangeAddress c11 = new CellRangeAddress(2, 2, 0, 2);// 第三行供应商
CellRangeAddress c12 = new CellRangeAddress(2, 2, 3, 5);// 第三行单据日期
CellRangeAddress c13 = new CellRangeAddress(2, 2, 6, 8);// 第三行单据编号
sheet.addMergedRegion(c);
sheet.addMergedRegion(c0);
sheet.addMergedRegion(c11);
sheet.addMergedRegion(c12);
sheet.addMergedRegion(c13);
Row rowColumnName = sheet.createRow((short) 3); // 列名
rowColumnName.setHeight((short) 500);
String[] columnNames = { "序号", "编码/商品名称", "规格", "单位", "仓库","数量","单价",
"金额","备注" };
Double totalAmount = 0.00;
Double totalNumber = 0.00;
for (int i = 0; i < columnNames.length; i++) {
Cell cell = rowColumnName.createCell(i);
cell.setCellValue(columnNames[i]);
cell.setCellStyle(cs3);
}
int cellsNum = 3;
int cerconNo = 1;
for (int i = 0; i < tWzRkItemOldList.size(); i++) {
TWzRkItemDto entity = tWzRkItemOldList.get(i);
cellsNum++;
Row rowColumnValue = sheet.createRow((short) cellsNum); // 列名
rowColumnValue.setHeight((short) 500);
Cell cell1 = rowColumnValue.createCell(0);
cell1.setCellValue(cerconNo);
cell1.setCellStyle(cs3);
Cell cell2 = rowColumnValue.createCell(1);
try {
cell2.setCellStyle(cs3);
cell2.setCellValue(entity.getMatName());
}catch (Exception e){
}
try {
Cell cell3 = rowColumnValue.createCell(2);
cell3.setCellValue(entity.getSpec());
cell3.setCellStyle(cs3);
}catch (Exception e){
}
try {
Cell cell4 = rowColumnValue.createCell(3);
cell4.setCellValue(entity.getMatUnit());
cell4.setCellStyle(cs3);
}catch (Exception e){
}
try {
Cell cell5 = rowColumnValue.createCell(4);
cell5.setCellValue(entity.getMatLocation());
cell5.setCellStyle(cs3);
}catch (Exception e){
}
try {
Cell cell6 = rowColumnValue.createCell(5);
// cell6.setCellValue(entity.getMatQty());
cell6.setCellValue(StringUtil.moneyToString(entity.getMatQty(),"#.0000"));
cell6.setCellStyle(cs3);
totalNumber = totalNumber + Double.parseDouble(entity.getMatQty());
}catch (Exception e){
}
try {
Cell cell7 = rowColumnValue.createCell(6);
// cell7.setCellValue(entity.getMatPrice());
cell7.setCellValue(StringUtil.moneyToString(entity.getMatPrice(),"#.00"));
cell7.setCellStyle(cs3);
}catch (Exception e){
}
try {
Cell cell8 = rowColumnValue.createCell(7);
// cell8.setCellValue(entity.getMatAmount());
cell8.setCellValue(StringUtil.moneyToString(entity.getMatAmount(),"#.00"));
cell8.setCellStyle(cs3);
totalAmount = totalAmount + Double.parseDouble(entity.getMatAmount());
}catch (Exception e){
}
try {
Cell cell9 = rowColumnValue.createCell(8);
cell9.setCellValue("");
cell9.setCellStyle(cs3);
}catch (Exception e){
}
cerconNo++;
}
//底部合计金额与数量
Row rowColumnInfo = sheet.createRow((short) 1 + cellsNum); // 列名
Cell cellrow = rowColumnInfo.createCell(0);
cellrow.setCellValue("合计");
cellrow.setCellStyle(cs4);
Cell cellTotatl2 = rowColumnInfo.createCell(5);
cellTotatl2.setCellValue(StringUtil.moneyToString(totalNumber,"#.0000"));
cellTotatl2.setCellStyle(cs3);
Cell cellTotatl3 = rowColumnInfo.createCell(6);
cellTotatl3.setCellValue("");
cellTotatl3.setCellStyle(cs3);
Cell cellTotatl4 = rowColumnInfo.createCell(7);
cellTotatl4.setCellValue(StringUtil.moneyToString(totalAmount,"#.00"));
cellTotatl4.setCellStyle(cs3);
Cell cellTotatl5 = rowColumnInfo.createCell(8);
cellTotatl5.setCellValue("");
cellTotatl5.setCellStyle(cs3);
//合并单元格
CellRangeAddress cellTotal = new CellRangeAddress(1 + cellsNum, 1 + cellsNum, 0, 4);
sheet.addMergedRegion(cellTotal);
ReportUtils.setBorderStyle(HSSFCellStyle.BORDER_THIN, cellTotal, sheet, wb);
//底部合计金额大写转为汉字
Row rowColumnInfo2 = sheet.createRow((short) 2 + cellsNum); // 列名
Cell cellrow2 = rowColumnInfo2.createCell(0);
cellrow2.setCellValue("合计金额大写:" + ReportUtils.number2CNMontrayUnit(new BigDecimal(StringUtil.moneyToString(totalAmount,"#.00"))));
cellrow2.setCellStyle(cs4);
//合并单元格
CellRangeAddress cellAmount = new CellRangeAddress(2 + cellsNum, 2 + cellsNum, 0, 8);
sheet.addMergedRegion(cellAmount);
ReportUtils.setBorderStyle(HSSFCellStyle.BORDER_THIN, cellAmount, sheet, wb);
//底部签字
Row rowColumnInfo3 = sheet.createRow((short) 5 + cellsNum); // 列名
Cell cellrow3 = rowColumnInfo3.createCell(0);
cellrow3.setCellValue("制单人: 审核人: 收货人:");
cellrow3.setCellStyle(cs5);
//输出文件
fileOut = response.getOutputStream();
HSSFPrintSetup printSetup = sheet.getPrintSetup();
printSetup.setPaperSize(HSSFPrintSetup.A5_PAPERSIZE);
printSetup.setLandscape(true);
wb.write(fileOut);
} catch (Exception e) {
e.printStackTrace();
} finally {
if (fileOut != null) {
try {
fileOut.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
@RequestMapping(params = "doUpdatesp")
@ResponseBody
public AjaxJson doUpdatesp(String id, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
String message = "审批成功";
try{
TWzRkHeadEntity tWzRkHead = systemService.get(TWzRkHeadEntity.class,Integer.parseInt(id));
tWzRkHead.setBpmStatus("1");
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wzrk_hid = ? ";
List<TWzRkItemEntity> tWzRkItemList = systemService.findHql(hql0,id);
//===================================================================================
//查询-采购订单行项目
try{
for (TWzRkItemEntity page : tWzRkItemList) {
page.setBpmStatus("1");
systemService.saveOrUpdate(page);
TWzMaterialEntity wz = systemService.findUniqueByProperty(TWzMaterialEntity.class,"matCode",page.getMatCode());
try{
if(!StringUtil.isEmpty(page.getMatPrice())){
wz.setMatPrice(new BigDecimal(page.getMatPrice()));
systemService.updateEntitie(wz);
}
}catch (Exception e){
}
}
}catch (Exception e){
}
systemService.saveOrUpdate(tWzRkHead);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
message = "审批失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
}

View File

@ -1,514 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:29
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_ck_head", schema = "")
@SuppressWarnings("serial")
public class TWzCkHeadEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**领用部门*/
@Excel(name="领用部门",width=15)
private String orgCode;
/**领用部门名称*/
@Excel(name="领用部门名称",width=15)
private String orgName;
/**领用人*/
@Excel(name="领用人",width=15)
private String ckUsername;
/**领用人名字*/
@Excel(name="领用人名字",width=15)
private String ckName;
/**单据日期*/
@Excel(name="单据日期",width=15)
private String docDate;
/**整单价值*/
private String ckValue;
/**出库备注*/
@Excel(name="出库备注",width=15)
private String ckRemark;
/**手工审批*/
@Excel(name="手工审批",width=15,dicCode="sf_yn")
private String ckSgsp;
/**附件*/
@Excel(name="附件",width=15)
private String ckFujian;
/**备用1*/
@Excel(name="业务类型",width=15)
private String by1;
/**备用2*/
@Excel(name="出库类别",width=15)
private String by2;
/**备用3*/
@Excel(name="再利用程度",width=15)
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ORG_CODE",nullable=true,length=32)
public String getOrgCode(){
return this.orgCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setOrgCode(String orgCode){
this.orgCode = orgCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ORG_NAME",nullable=true,length=32)
public String getOrgName(){
return this.orgName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setOrgName(String orgName){
this.orgName = orgName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_USERNAME",nullable=true,length=32)
public String getCkUsername(){
return this.ckUsername;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkUsername(String ckUsername){
this.ckUsername = ckUsername;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_NAME",nullable=true,length=32)
public String getCkName(){
return this.ckName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkName(String ckName){
this.ckName = ckName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="DOC_DATE",nullable=true,length=32)
public String getDocDate(){
return this.docDate;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setDocDate(String docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_VALUE",nullable=true,length=32)
public String getCkValue(){
return this.ckValue;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkValue(String ckValue){
this.ckValue = ckValue;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_REMARK",nullable=true,length=232)
public String getCkRemark(){
return this.ckRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkRemark(String ckRemark){
this.ckRemark = ckRemark;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_SGSP",nullable=true,length=32)
public String getCkSgsp(){
return this.ckSgsp;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkSgsp(String ckSgsp){
this.ckSgsp = ckSgsp;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CK_FUJIAN",nullable=true,length=232)
public String getCkFujian(){
return this.ckFujian;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkFujian(String ckFujian){
this.ckFujian = ckFujian;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="BY4",nullable=true,length=32)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="BY5",nullable=true,length=32)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,95 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
public class TWzCkItemDto {
/**物料名称*/
@Excel(name="商品编号",width=15)
private String matCode;
/**物料名称*/
@Excel(name="商品名称",width=15)
private String matName;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**领用人*/
@Excel(name="领用人",width=15)
private String ckName;
/**出库数量*/
@Excel(name="出库数量",width=15)
private String matQty;
/**单价*/
@Excel(name="单价",width=15)
private String matPrice;
/**物料单位*/
@Excel(name="单位",width=15)
private String matUnit;
/**总价*/
@Excel(name="总价",width=15)
private String matAmount;
public String getMatCode() {
return matCode;
}
public void setMatCode(String matCode) {
this.matCode = matCode;
}
public String getMatName() {
return matName;
}
public void setMatName(String matName) {
this.matName = matName;
}
public String getMatLocation() {
return matLocation;
}
public void setMatLocation(String matLocation) {
this.matLocation = matLocation;
}
public String getCkName() {
return ckName;
}
public void setCkName(String ckName) {
this.ckName = ckName;
}
public String getMatQty() {
return matQty;
}
public void setMatQty(String matQty) {
this.matQty = matQty;
}
public String getMatPrice() {
return matPrice;
}
public void setMatPrice(String matPrice) {
this.matPrice = matPrice;
}
public String getMatUnit() {
return matUnit;
}
public void setMatUnit(String matUnit) {
this.matUnit = matUnit;
}
public String getMatAmount() {
return matAmount;
}
public void setMatAmount(String matAmount) {
this.matAmount = matAmount;
}
}

View File

@ -1,533 +0,0 @@
package com.zzjee.wzyw.entity;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:28
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_ck_item", schema = "")
@SuppressWarnings("serial")
public class TWzCkItemEntity 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;
/**流程状态*/
private String bpmStatus;
/**外键*/
private String wzckHid;
/**物料编码*/
@Excel(name="物料编码",width=15)
private String matCode;
/**物料名称*/
@Excel(name="物料名称",width=15)
private String matName;
/**数量*/
@Excel(name="数量",width=15)
private String matQty;
/**单位*/
@Excel(name="单位",width=15)
private String matUnit;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**批次*/
@Excel(name="批次",width=15)
private String matBatch;
/**单价*/
@Excel(name="单价",width=15)
private String matPrice;
/**总价值*/
private String matAmount;
/**备注*/
@Excel(name="备注",width=15)
private String itemRemark;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**
*: 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="WZCK_HID",nullable=true,length=32)
public String getWzckHid(){
return this.wzckHid;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setWzckHid(String wzckHid){
this.wzckHid = wzckHid;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=32)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY",nullable=true,length=32)
public String getMatQty(){
return this.matQty;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQty(String matQty){
this.matQty = matQty;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_BATCH",nullable=true,length=32)
public String getMatBatch(){
return this.matBatch;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatBatch(String matBatch){
this.matBatch = matBatch;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_PRICE",nullable=true,length=32)
public String getMatPrice(){
return this.matPrice;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatPrice(String matPrice){
this.matPrice = matPrice;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_AMOUNT",nullable=true,length=32)
public String getMatAmount(){
return this.matAmount;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatAmount(String matAmount){
this.matAmount = matAmount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ITEM_REMARK",nullable=true,length=232)
public String getItemRemark(){
return this.itemRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setItemRemark(String itemRemark){
this.itemRemark = itemRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="BY4",nullable=true,length=32)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="BY5",nullable=true,length=32)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,387 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-21 13:23:13
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_po_head", schema = "")
@SuppressWarnings("serial")
public class TWzPoHeadEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**供应商编码*/
@Excel(name="供应商编码",width=15)
private String vendorCode;
/**供应商名称*/
@Excel(name="供应商名称",width=15)
private String vendorName;
/**采购订单日期*/
@Excel(name="采购订单日期",width=15,format = "yyyy-MM-dd")
private Date docDate;
/**采购订单备注*/
@Excel(name="采购订单备注",width=15)
private String poRemark;
/**备用1*/
private String poBy1;
/**备用2*/
private String poBy2;
/**备用3*/
private String poBy3;
/**备用4*/
private String poBy4;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_CODE",nullable=true,length=32)
public String getVendorCode(){
return this.vendorCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorCode(String vendorCode){
this.vendorCode = vendorCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_NAME",nullable=true,length=32)
public String getVendorName(){
return this.vendorName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorName(String vendorName){
this.vendorName = vendorName;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="DOC_DATE",nullable=true,length=32)
public Date getDocDate(){
return this.docDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setDocDate(Date docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="PO_REMARK",nullable=true,length=232)
public String getPoRemark(){
return this.poRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setPoRemark(String poRemark){
this.poRemark = poRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="PO_BY1",nullable=true,length=32)
public String getPoBy1(){
return this.poBy1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setPoBy1(String poBy1){
this.poBy1 = poBy1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="PO_BY2",nullable=true,length=32)
public String getPoBy2(){
return this.poBy2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setPoBy2(String poBy2){
this.poBy2 = poBy2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="PO_BY3",nullable=true,length=32)
public String getPoBy3(){
return this.poBy3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setPoBy3(String poBy3){
this.poBy3 = poBy3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="PO_BY4",nullable=true,length=32)
public String getPoBy4(){
return this.poBy4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setPoBy4(String poBy4){
this.poBy4 = poBy4;
}
}

View File

@ -1,513 +0,0 @@
package com.zzjee.wzyw.entity;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-21 13:23:13
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_po_item", schema = "")
@SuppressWarnings("serial")
public class TWzPoItemEntity 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;
/**流程状态*/
private String bpmStatus;
/**外键*/
private String poId;
/**物料编码*/
@Excel(name="物料编码",width=15)
private String matCode;
/**物料名称*/
@Excel(name="物料名称",width=15)
private String matName;
/**数量*/
@Excel(name="数量",width=15)
private String matQty;
/**单位*/
@Excel(name="单位",width=15)
private String matUnit;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**批次*/
@Excel(name="批次",width=15)
private String matBatch;
/**标准价*/
@Excel(name="标准价",width=15)
private String matPrice;
/**总价值*/
private String matAmount;
/**备注*/
@Excel(name="备注",width=15)
private String itemRemark;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**未清数量*/
private String matQtyWq;
/**
*: 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="PO_ID",nullable=true,length=32)
public String getPoId(){
return this.poId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setPoId(String poId){
this.poId = poId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=32)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY",nullable=true,length=32)
public String getMatQty(){
return this.matQty;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQty(String matQty){
this.matQty = matQty;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_BATCH",nullable=true,length=32)
public String getMatBatch(){
return this.matBatch;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatBatch(String matBatch){
this.matBatch = matBatch;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_PRICE",nullable=true,length=32)
public String getMatPrice(){
return this.matPrice;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatPrice(String matPrice){
this.matPrice = matPrice;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_AMOUNT",nullable=true,length=32)
public String getMatAmount(){
return this.matAmount;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatAmount(String matAmount){
this.matAmount = matAmount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ITEM_REMARK",nullable=true,length=32)
public String getItemRemark(){
return this.itemRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setItemRemark(String itemRemark){
this.itemRemark = itemRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY_WQ",nullable=true,length=32)
public String getMatQtyWq(){
return this.matQtyWq;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQtyWq(String matQtyWq){
this.matQtyWq = matQtyWq;
}
}

View File

@ -1,428 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_rk_head", schema = "")
@SuppressWarnings("serial")
public class TWzRkHeadEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**供应商编码*/
@Excel(name="供应商编码",width=15)
private String vendorCode;
/**供应商名称*/
@Excel(name="供应商名称",width=15)
private String vendorName;
/**入库日期*/
@Excel(name="入库日期",width=15,format = "yyyy-MM-dd")
private Date docDate;
/**入库备注*/
@Excel(name="入库备注",width=15)
private String rkRemark;
/**附件*/
@Excel(name="附件",width=15)
private String rkFujian;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_CODE",nullable=true,length=32)
public String getVendorCode(){
return this.vendorCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorCode(String vendorCode){
this.vendorCode = vendorCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="VENDOR_NAME",nullable=true,length=32)
public String getVendorName(){
return this.vendorName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorName(String vendorName){
this.vendorName = vendorName;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
@Column(name ="DOC_DATE",nullable=true,length=32)
public Date getDocDate(){
return this.docDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setDocDate(Date docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="RK_REMARK",nullable=true,length=32)
public String getRkRemark(){
return this.rkRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRkRemark(String rkRemark){
this.rkRemark = rkRemark;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="RK_FUJIAN",nullable=true,length=32)
public String getRkFujian(){
return this.rkFujian;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRkFujian(String rkFujian){
this.rkFujian = rkFujian;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="BY4",nullable=true,length=32)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="BY5",nullable=true,length=32)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,93 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
public class TWzRkItemDto {
/**主键*/
private Integer id;
/**物料名称*/
@Excel(name="编码/商品名称",width=15)
private String matName;
/**物料编码*/
@Excel(name="规格",width=15)
private String spec;
/**物料单位*/
@Excel(name="单位",width=15)
private String matUnit;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**入库数量*/
@Excel(name="入库数量",width=15)
private String matQty;
/**单价*/
@Excel(name="单价",width=15)
private String matPrice;
/**总价*/
private String matAmount;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getMatName() {
return matName;
}
public void setMatName(String matName) {
this.matName = matName;
}
public String getSpec() {
return spec;
}
public void setSpec(String spec) {
this.spec = spec;
}
public String getMatUnit() {
return matUnit;
}
public void setMatUnit(String matUnit) {
this.matUnit = matUnit;
}
public String getMatLocation() {
return matLocation;
}
public void setMatLocation(String matLocation) {
this.matLocation = matLocation;
}
public String getMatQty() {
return matQty;
}
public void setMatQty(String matQty) {
this.matQty = matQty;
}
public String getMatPrice() {
return matPrice;
}
public void setMatPrice(String matPrice) {
this.matPrice = matPrice;
}
public String getMatAmount() {
return matAmount;
}
public void setMatAmount(String matAmount) {
this.matAmount = matAmount;
}
}

View File

@ -1,551 +0,0 @@
package com.zzjee.wzyw.entity;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
*
*/
@Entity
@Table(name = "t_wz_rk_item", schema = "")
@SuppressWarnings("serial")
public class TWzRkItemEntity implements java.io.Serializable {
/**主键*/
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**外键*/
private String wzrkHid;
/**物料编码*/
@Excel(name="物料编码",width=15)
private String matCode;
/**物料名称*/
@Excel(name="物料名称",width=15)
private String matName;
/**入库数量*/
@Excel(name="入库数量",width=15)
private String matQty;
/**物料单位*/
@Excel(name="物料单位",width=15)
private String matUnit;
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**批次*/
@Excel(name="批次",width=15)
private String matBatch;
/**标准价*/
@Excel(name="标准价",width=15)
private String matPrice;
/**总价*/
private String matAmount;
/**备注*/
@Excel(name="备注",width=15)
private String itemRemark;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**备用6*/
private String by6;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=20)
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer 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,length=20)
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,length=20)
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 ="BPM_STATUS",nullable=true,length=32)
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="WZRK_HID",nullable=true,length=32)
public String getWzrkHid(){
return this.wzrkHid;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setWzrkHid(String wzrkHid){
this.wzrkHid = wzrkHid;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_CODE",nullable=true,length=32)
public String getMatCode(){
return this.matCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatCode(String matCode){
this.matCode = matCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_NAME",nullable=true,length=32)
public String getMatName(){
return this.matName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatName(String matName){
this.matName = matName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_QTY",nullable=true,length=32)
public String getMatQty(){
return this.matQty;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatQty(String matQty){
this.matQty = matQty;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_UNIT",nullable=true,length=32)
public String getMatUnit(){
return this.matUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatUnit(String matUnit){
this.matUnit = matUnit;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_LOCATION",nullable=true,length=32)
public String getMatLocation(){
return this.matLocation;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatLocation(String matLocation){
this.matLocation = matLocation;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_BATCH",nullable=true,length=32)
public String getMatBatch(){
return this.matBatch;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatBatch(String matBatch){
this.matBatch = matBatch;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_PRICE",nullable=true,length=32)
public String getMatPrice(){
return this.matPrice;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatPrice(String matPrice){
this.matPrice = matPrice;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="MAT_AMOUNT",nullable=true,length=32)
public String getMatAmount(){
return this.matAmount;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setMatAmount(String matAmount){
this.matAmount = matAmount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="ITEM_REMARK",nullable=true,length=32)
public String getItemRemark(){
return this.itemRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setItemRemark(String itemRemark){
this.itemRemark = itemRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
@Column(name ="BY1",nullable=true,length=32)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
@Column(name ="BY2",nullable=true,length=32)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
@Column(name ="BY3",nullable=true,length=32)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
@Column(name ="BY4",nullable=true,length=32)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
@Column(name ="BY5",nullable=true,length=32)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
/**
*: java.lang.String
*@return: java.lang.String 6
*/
@Column(name ="BY6",nullable=true,length=32)
public String getBy6(){
return this.by6;
}
/**
*: java.lang.String
*@param: java.lang.String 6
*/
public void setBy6(String by6){
this.by6 = by6;
}
}

View File

@ -1,449 +0,0 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:29
* @version V1.0
*
*/
public class TWzCkHeadPage implements java.io.Serializable {
/**主键*/
@Excel(name="出库单号")
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**领用部门*/
@Excel(name="领用部门")
private String orgCode;
/**领用部门名称*/
@Excel(name="领用部门名称")
private String orgName;
/**领用人*/
@Excel(name="领用人")
private String ckUsername;
/**领用人名字*/
@Excel(name="领用人名字")
private String ckName;
/**单据日期*/
@Excel(name="单据日期")
private String docDate;
/**整单价值*/
private String ckValue;
/**出库备注*/
@Excel(name="出库备注")
private String ckRemark;
/**手工审批*/
@Excel(name="手工审批")
private String ckSgsp;
/**附件*/
@Excel(name="附件")
private String ckFujian;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getOrgCode(){
return this.orgCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setOrgCode(String orgCode){
this.orgCode = orgCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getOrgName(){
return this.orgName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setOrgName(String orgName){
this.orgName = orgName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkUsername(){
return this.ckUsername;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkUsername(String ckUsername){
this.ckUsername = ckUsername;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkName(){
return this.ckName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkName(String ckName){
this.ckName = ckName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getDocDate(){
return this.docDate;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setDocDate(String docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkValue(){
return this.ckValue;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkValue(String ckValue){
this.ckValue = ckValue;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkRemark(){
return this.ckRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkRemark(String ckRemark){
this.ckRemark = ckRemark;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkSgsp(){
return this.ckSgsp;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkSgsp(String ckSgsp){
this.ckSgsp = ckSgsp;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getCkFujian(){
return this.ckFujian;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCkFujian(String ckFujian){
this.ckFujian = ckFujian;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
/**保存-出库商品*/
@ExcelCollection(name="出库商品")
private List<TWzCkItemEntity> tWzCkItemList = new ArrayList<TWzCkItemEntity>();
public List<TWzCkItemEntity> getTWzCkItemList() {
return tWzCkItemList;
}
public void setTWzCkItemList(List<TWzCkItemEntity> tWzCkItemList) {
this.tWzCkItemList = tWzCkItemList;
}
}

View File

@ -1,343 +0,0 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-21 13:23:13
* @version V1.0
*
*/
public class TWzPoHeadPage implements java.io.Serializable {
/**主键*/
@Excel(name="采购单号")
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**供应商编码*/
@Excel(name="供应商编码")
private String vendorCode;
/**供应商名称*/
@Excel(name="供应商名称")
private String vendorName;
/**采购订单日期*/
@Excel(name="采购订单日期",format = "yyyy-MM-dd")
private Date docDate;
/**采购订单备注*/
@Excel(name="采购订单备注")
private String poRemark;
/**备用1*/
private String poBy1;
/**备用2*/
private String poBy2;
/**备用3*/
private String poBy3;
/**备用4*/
private String poBy4;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getVendorCode(){
return this.vendorCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorCode(String vendorCode){
this.vendorCode = vendorCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getVendorName(){
return this.vendorName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorName(String vendorName){
this.vendorName = vendorName;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
public Date getDocDate(){
return this.docDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setDocDate(Date docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getPoRemark(){
return this.poRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setPoRemark(String poRemark){
this.poRemark = poRemark;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
public String getPoBy1(){
return this.poBy1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setPoBy1(String poBy1){
this.poBy1 = poBy1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
public String getPoBy2(){
return this.poBy2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setPoBy2(String poBy2){
this.poBy2 = poBy2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
public String getPoBy3(){
return this.poBy3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setPoBy3(String poBy3){
this.poBy3 = poBy3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
public String getPoBy4(){
return this.poBy4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setPoBy4(String poBy4){
this.poBy4 = poBy4;
}
/**保存-采购订单行项目*/
@ExcelCollection(name="采购订单行项目")
private List<TWzPoItemEntity> tWzPoItemList = new ArrayList<TWzPoItemEntity>();
public List<TWzPoItemEntity> getTWzPoItemList() {
return tWzPoItemList;
}
public void setTWzPoItemList(List<TWzPoItemEntity> tWzPoItemList) {
this.tWzPoItemList = tWzPoItemList;
}
}

View File

@ -1,378 +0,0 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
*
*/
public class TWzRkHeadPage implements java.io.Serializable {
/**主键*/
@Excel(name="入库单号")
private Integer 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;
/**流程状态*/
private String bpmStatus;
/**供应商编码*/
@Excel(name="供应商编码")
private String vendorCode;
/**供应商名称*/
@Excel(name="供应商名称")
private String vendorName;
/**入库日期*/
@Excel(name="入库日期",format = "yyyy-MM-dd")
private Date docDate;
/**入库备注*/
@Excel(name="入库备注")
private String rkRemark;
/**附件*/
@Excel(name="附件")
private String rkFujian;
/**备用1*/
private String by1;
/**备用2*/
private String by2;
/**备用3*/
private String by3;
/**备用4*/
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer
*/
public Integer getId(){
return this.id;
}
/**
*: java.lang.Integer
*@param: java.lang.Integer
*/
public void setId(Integer id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
public String getBpmStatus(){
return this.bpmStatus;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBpmStatus(String bpmStatus){
this.bpmStatus = bpmStatus;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getVendorCode(){
return this.vendorCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorCode(String vendorCode){
this.vendorCode = vendorCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getVendorName(){
return this.vendorName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setVendorName(String vendorName){
this.vendorName = vendorName;
}
/**
*: java.util.Date
*@return: java.util.Date
*/
public Date getDocDate(){
return this.docDate;
}
/**
*: java.util.Date
*@param: java.util.Date
*/
public void setDocDate(Date docDate){
this.docDate = docDate;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getRkRemark(){
return this.rkRemark;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRkRemark(String rkRemark){
this.rkRemark = rkRemark;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
public String getRkFujian(){
return this.rkFujian;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setRkFujian(String rkFujian){
this.rkFujian = rkFujian;
}
/**
*: java.lang.String
*@return: java.lang.String 1
*/
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String 1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String 2
*/
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String 2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String 3
*/
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String 3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String 4
*/
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String 4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String 5
*/
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String 5
*/
public void setBy5(String by5){
this.by5 = by5;
}
/**保存-入库商品*/
@ExcelCollection(name="入库商品")
private List<TWzRkItemEntity> tWzRkItemList = new ArrayList<TWzRkItemEntity>();
public List<TWzRkItemEntity> getTWzRkItemList() {
return tWzRkItemList;
}
public void setTWzRkItemList(List<TWzRkItemEntity> tWzRkItemList) {
this.tWzRkItemList = tWzRkItemList;
}
}

View File

@ -1,45 +0,0 @@
package com.zzjee.wzyw.service;
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.util.List;
public interface TWzCkHeadServiceI extends CommonService {
@Override
public <T> void delete(T entity);
/**
*
*
*/
public void addMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList) ;
/**
*
*
*/
public void updateMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList);
public void delMain(TWzCkHeadEntity tWzCkHead);
/**
* -sql-
* @param t
* @return
*/
public boolean doAddSql(TWzCkHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doUpdateSql(TWzCkHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doDelSql(TWzCkHeadEntity t);
}

View File

@ -1,45 +0,0 @@
package com.zzjee.wzyw.service;
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.util.List;
public interface TWzPoHeadServiceI extends CommonService {
@Override
public <T> void delete(T entity);
/**
*
*
*/
public void addMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList) ;
/**
*
*
*/
public void updateMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList);
public void delMain(TWzPoHeadEntity tWzPoHead);
/**
* -sql-
* @param t
* @return
*/
public boolean doAddSql(TWzPoHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doUpdateSql(TWzPoHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doDelSql(TWzPoHeadEntity t);
}

View File

@ -1,45 +0,0 @@
package com.zzjee.wzyw.service;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import org.jeecgframework.core.common.service.CommonService;
import java.util.List;
public interface TWzRkHeadServiceI extends CommonService {
@Override
public <T> void delete(T entity);
/**
*
*
*/
public void addMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList) ;
/**
*
*
*/
public void updateMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList);
public void delMain(TWzRkHeadEntity tWzRkHead);
/**
* -sql-
* @param t
* @return
*/
public boolean doAddSql(TWzRkHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doUpdateSql(TWzRkHeadEntity t);
/**
* -sql-
* @param t
* @return
*/
public boolean doDelSql(TWzRkHeadEntity t);
}

View File

@ -1,192 +0,0 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import com.zzjee.wzyw.service.TWzCkHeadServiceI;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.core.util.oConvertUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
@Service("tWzCkHeadService")
@Transactional
public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHeadServiceI {
@Override
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzCkHeadEntity)entity);
}
@Override
public void addMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList){
//保存主信息
// tWzCkHead.setBpmStatus("0");
this.save(tWzCkHead);
/**保存-出库商品*/
for(TWzCkItemEntity tWzCkItem:tWzCkItemList){
//外键设置
tWzCkItem.setWzckHid(tWzCkHead.getId().toString());
// tWzCkItem.setBpmStatus("0");
this.save(tWzCkItem);
}
//执行新增操作配置的sql增强
this.doAddSql(tWzCkHead);
}
@Override
public void updateMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList) {
//保存主表信息
if(StringUtil.isNotEmpty(tWzCkHead.getId())){
try {
TWzCkHeadEntity temp = findUniqueByProperty(TWzCkHeadEntity.class, "id", tWzCkHead.getId());
MyBeanUtils.copyBeanNotNull2Bean(tWzCkHead, temp);
this.saveOrUpdate(temp);
} catch (Exception e) {
e.printStackTrace();
}
}else{
this.saveOrUpdate(tWzCkHead);
}
//===================================================================================
//获取参数
Object id0 = tWzCkHead.getId();
//===================================================================================
//1.查询出数据库的明细数据-出库商品
String hql0 = "from TWzCkItemEntity where 1 = 1 AND wZCK_HID = ? ";
List<TWzCkItemEntity> tWzCkItemOldList = this.findHql(hql0,id0);
//2.筛选更新明细数据-出库商品
if(tWzCkItemList!=null&&tWzCkItemList.size()>0){
for(TWzCkItemEntity oldE:tWzCkItemOldList){
boolean isUpdate = false;
for(TWzCkItemEntity sendE:tWzCkItemList){
//需要更新的明细数据-出库商品
if(oldE.getId().equals(sendE.getId())){
try {
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
this.saveOrUpdate(oldE);
} catch (Exception e) {
e.printStackTrace();
throw new BusinessException(e.getMessage());
}
isUpdate= true;
break;
}
}
if(!isUpdate){
//如果数据库存在的明细,前台没有传递过来则是删除-出库商品
super.delete(oldE);
}
}
//3.持久化新增的数据-出库商品
for(TWzCkItemEntity tWzCkItem:tWzCkItemList){
if(oConvertUtils.isEmpty(tWzCkItem.getId())){
//外键设置
tWzCkItem.setWzckHid(tWzCkHead.getId().toString());
this.save(tWzCkItem);
}
}
}
//执行更新操作配置的sql增强
this.doUpdateSql(tWzCkHead);
}
@Override
public void delMain(TWzCkHeadEntity tWzCkHead) {
//删除主表信息
this.delete(tWzCkHead);
//===================================================================================
//获取参数
Object id0 = tWzCkHead.getId();
//===================================================================================
//删除-出库商品
String hql0 = "from TWzCkItemEntity where 1 = 1 AND wZCK_HID = ? ";
List<TWzCkItemEntity> tWzCkItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzCkItemOldList);
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doAddSql(TWzCkHeadEntity t){
String tsql = "call p_wz_shenpi("+"'"+t.getId()+")";
try {
this.executeSql(tsql);
} catch (Exception e) {
// TODO: handle exception
}
// wzUtil.saveentity(t.getId().toString());//审批控制
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doUpdateSql(TWzCkHeadEntity t){
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doDelSql(TWzCkHeadEntity t){
return true;
}
/**
* sql
* @param sql
* @return
*/
public String replaceVal(String sql,TWzCkHeadEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{org_code}",String.valueOf(t.getOrgCode()));
sql = sql.replace("#{org_name}",String.valueOf(t.getOrgName()));
sql = sql.replace("#{ck_username}",String.valueOf(t.getCkUsername()));
sql = sql.replace("#{ck_name}",String.valueOf(t.getCkName()));
sql = sql.replace("#{doc_date}",String.valueOf(t.getDocDate()));
sql = sql.replace("#{ck_value}",String.valueOf(t.getCkValue()));
sql = sql.replace("#{ck_remark}",String.valueOf(t.getCkRemark()));
sql = sql.replace("#{ck_sgsp}",String.valueOf(t.getCkSgsp()));
sql = sql.replace("#{ck_fujian}",String.valueOf(t.getCkFujian()));
sql = sql.replace("#{by1}",String.valueOf(t.getBy1()));
sql = sql.replace("#{by2}",String.valueOf(t.getBy2()));
sql = sql.replace("#{by3}",String.valueOf(t.getBy3()));
sql = sql.replace("#{by4}",String.valueOf(t.getBy4()));
sql = sql.replace("#{by5}",String.valueOf(t.getBy5()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}

View File

@ -1,176 +0,0 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import com.zzjee.wzyw.service.TWzPoHeadServiceI;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.core.util.oConvertUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
@Service("tWzPoHeadService")
@Transactional
public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHeadServiceI {
@Override
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzPoHeadEntity)entity);
}
@Override
public void addMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList){
//保存主信息
this.save(tWzPoHead);
/**保存-采购订单行项目*/
for(TWzPoItemEntity tWzPoItem:tWzPoItemList){
//外键设置
tWzPoItem.setPoId(tWzPoHead.getId().toString());
this.save(tWzPoItem);
}
//执行新增操作配置的sql增强
this.doAddSql(tWzPoHead);
}
@Override
public void updateMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList) {
//保存主表信息
if(StringUtil.isNotEmpty(tWzPoHead.getId())){
try {
TWzPoHeadEntity temp = findUniqueByProperty(TWzPoHeadEntity.class, "id", tWzPoHead.getId());
MyBeanUtils.copyBeanNotNull2Bean(tWzPoHead, temp);
this.saveOrUpdate(temp);
} catch (Exception e) {
e.printStackTrace();
}
}else{
this.saveOrUpdate(tWzPoHead);
}
//===================================================================================
//获取参数
Object id0 = tWzPoHead.getId();
//===================================================================================
//1.查询出数据库的明细数据-采购订单行项目
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemOldList = this.findHql(hql0,id0);
//2.筛选更新明细数据-采购订单行项目
if(tWzPoItemList!=null&&tWzPoItemList.size()>0){
for(TWzPoItemEntity oldE:tWzPoItemOldList){
boolean isUpdate = false;
for(TWzPoItemEntity sendE:tWzPoItemList){
//需要更新的明细数据-采购订单行项目
if(oldE.getId().equals(sendE.getId())){
try {
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
this.saveOrUpdate(oldE);
} catch (Exception e) {
e.printStackTrace();
throw new BusinessException(e.getMessage());
}
isUpdate= true;
break;
}
}
if(!isUpdate){
//如果数据库存在的明细,前台没有传递过来则是删除-采购订单行项目
super.delete(oldE);
}
}
//3.持久化新增的数据-采购订单行项目
for(TWzPoItemEntity tWzPoItem:tWzPoItemList){
if(oConvertUtils.isEmpty(tWzPoItem.getId())){
//外键设置
tWzPoItem.setPoId(tWzPoHead.getId().toString());
this.save(tWzPoItem);
}
}
}
//执行更新操作配置的sql增强
this.doUpdateSql(tWzPoHead);
}
@Override
public void delMain(TWzPoHeadEntity tWzPoHead) {
//删除主表信息
this.delete(tWzPoHead);
//===================================================================================
//获取参数
Object id0 = tWzPoHead.getId();
//===================================================================================
//删除-采购订单行项目
String hql0 = "from TWzPoItemEntity where 1 = 1 AND pO_ID = ? ";
List<TWzPoItemEntity> tWzPoItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzPoItemOldList);
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doAddSql(TWzPoHeadEntity t){
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doUpdateSql(TWzPoHeadEntity t){
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doDelSql(TWzPoHeadEntity t){
return true;
}
/**
* sql
* @param sql
* @return
*/
public String replaceVal(String sql,TWzPoHeadEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{vendor_code}",String.valueOf(t.getVendorCode()));
sql = sql.replace("#{vendor_name}",String.valueOf(t.getVendorName()));
sql = sql.replace("#{doc_date}",String.valueOf(t.getDocDate()));
sql = sql.replace("#{po_remark}",String.valueOf(t.getPoRemark()));
sql = sql.replace("#{po_by1}",String.valueOf(t.getPoBy1()));
sql = sql.replace("#{po_by2}",String.valueOf(t.getPoBy2()));
sql = sql.replace("#{po_by3}",String.valueOf(t.getPoBy3()));
sql = sql.replace("#{po_by4}",String.valueOf(t.getPoBy4()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}

View File

@ -1,181 +0,0 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import com.zzjee.wzyw.service.TWzRkHeadServiceI;
import org.jeecgframework.core.common.exception.BusinessException;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.jeecgframework.core.util.MyBeanUtils;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.core.util.oConvertUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
@Service("tWzRkHeadService")
@Transactional
public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHeadServiceI {
@Override
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzRkHeadEntity)entity);
}
@Override
public void addMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList){
//保存主信息
tWzRkHead.setBpmStatus("0");
this.save(tWzRkHead);
/**保存-入库商品*/
for(TWzRkItemEntity tWzRkItem:tWzRkItemList){
//外键设置
tWzRkItem.setWzrkHid(tWzRkHead.getId().toString());
tWzRkItem.setBpmStatus("0");
this.save(tWzRkItem);
}
//执行新增操作配置的sql增强
this.doAddSql(tWzRkHead);
}
@Override
public void updateMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList) {
//保存主表信息
if(StringUtil.isNotEmpty(tWzRkHead.getId())){
try {
TWzRkHeadEntity temp = findUniqueByProperty(TWzRkHeadEntity.class, "id", tWzRkHead.getId());
MyBeanUtils.copyBeanNotNull2Bean(tWzRkHead, temp);
this.saveOrUpdate(temp);
} catch (Exception e) {
e.printStackTrace();
}
}else{
this.saveOrUpdate(tWzRkHead);
}
//===================================================================================
//获取参数
Object id0 = tWzRkHead.getId();
//===================================================================================
//1.查询出数据库的明细数据-入库商品
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
List<TWzRkItemEntity> tWzRkItemOldList = this.findHql(hql0,id0);
//2.筛选更新明细数据-入库商品
if(tWzRkItemList!=null&&tWzRkItemList.size()>0){
for(TWzRkItemEntity oldE:tWzRkItemOldList){
boolean isUpdate = false;
for(TWzRkItemEntity sendE:tWzRkItemList){
//需要更新的明细数据-入库商品
if(oldE.getId().equals(sendE.getId())){
try {
MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
this.saveOrUpdate(oldE);
} catch (Exception e) {
e.printStackTrace();
throw new BusinessException(e.getMessage());
}
isUpdate= true;
break;
}
}
if(!isUpdate){
//如果数据库存在的明细,前台没有传递过来则是删除-入库商品
super.delete(oldE);
}
}
//3.持久化新增的数据-入库商品
for(TWzRkItemEntity tWzRkItem:tWzRkItemList){
if(oConvertUtils.isEmpty(tWzRkItem.getId())){
//外键设置
tWzRkItem.setWzrkHid(tWzRkHead.getId().toString());
this.save(tWzRkItem);
}
}
}
//执行更新操作配置的sql增强
this.doUpdateSql(tWzRkHead);
}
@Override
public void delMain(TWzRkHeadEntity tWzRkHead) {
//删除主表信息
this.delete(tWzRkHead);
//===================================================================================
//获取参数
Object id0 = tWzRkHead.getId();
//===================================================================================
//删除-入库商品
String hql0 = "from TWzRkItemEntity where 1 = 1 AND wZRK_HID = ? ";
List<TWzRkItemEntity> tWzRkItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzRkItemOldList);
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doAddSql(TWzRkHeadEntity t){
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doUpdateSql(TWzRkHeadEntity t){
return true;
}
/**
* -sql-
* @param t
* @return
*/
@Override
public boolean doDelSql(TWzRkHeadEntity t){
return true;
}
/**
* sql
* @param sql
* @return
*/
public String replaceVal(String sql, TWzRkHeadEntity 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("#{bpm_status}",String.valueOf(t.getBpmStatus()));
sql = sql.replace("#{vendor_code}",String.valueOf(t.getVendorCode()));
sql = sql.replace("#{vendor_name}",String.valueOf(t.getVendorName()));
sql = sql.replace("#{doc_date}",String.valueOf(t.getDocDate()));
sql = sql.replace("#{rk_remark}",String.valueOf(t.getRkRemark()));
sql = sql.replace("#{rk_fujian}",String.valueOf(t.getRkFujian()));
sql = sql.replace("#{by1}",String.valueOf(t.getBy1()));
sql = sql.replace("#{by2}",String.valueOf(t.getBy2()));
sql = sql.replace("#{by3}",String.valueOf(t.getBy3()));
sql = sql.replace("#{by4}",String.valueOf(t.getBy4()));
sql = sql.replace("#{by5}",String.valueOf(t.getBy5()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}

View File

@ -1122,6 +1122,7 @@ function inputClick(obj,name,code) {
height: 400,
cache:false,
ok: function(){
console.log("")
iframe = this.iframe.contentWindow;
var selected = iframe.getSelectRows();
if (selected == '' || selected == null ){

View File

@ -79,26 +79,26 @@
<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')"
onclick="inputClick(this,'appmodel_code','pop_app_fun')" multiple="multiple"
></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>
<%-- <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>

View File

@ -78,26 +78,26 @@
<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')"
onclick="inputClick(this,'appmodel_code','pop_app_fun')" multiple="multiple"
>${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>
<%-- <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>

View File

@ -15,9 +15,9 @@
<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模块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="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>

View File

@ -38,25 +38,29 @@
ignore="ignore"
/>
<%-- <t:userSelect title="用户名称" selectedNamesInputId="userNames" selectedIdsInputId="appuserCode" windowWidth="600px" windowHeight="300px"></t:userSelect>--%>
<%-- <t:userSelect selectedNamesInputId="userNames" selectedIdsInputId="appuserCode" > </t:userSelect>--%>
<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"
<%-- <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>
<%-- 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">--%>
@ -78,28 +82,28 @@
</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')"
onclick="inputClick(this,'approle_code','pop_app_role')" multiple="multiple"
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"
<%-- <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>
<%-- ignore="ignore"--%>
<%-- />--%>
<%-- <span class="Validform_checktip"></span>--%>
<%-- <label class="Validform_label" style="display: none;">角色名称</label>--%>
<%-- </td>--%>
<%-- </tr>--%>
</table>
</t:formvalid>
</body>

View File

@ -37,24 +37,26 @@
<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">--%>
<%-- 用户名称:--%>
<%-- </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">--%>
@ -77,26 +79,26 @@
</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')"
ignore="ignore" onclick="inputClick(this,'approle_code','pop_app_role')" multiple="multiple"
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>
<%-- <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>

View File

@ -14,10 +14,10 @@
<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="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="角色名称" 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>

View File

@ -1,33 +0,0 @@
<%@ 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>库存地点</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="tWzLocationController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzLocationPage.id }"/>
<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="matLocation" name="matLocation" 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/wz/tWzLocation.js"></script>

View File

@ -1,32 +0,0 @@
<%@ 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>库存地点</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="tWzLocationController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzLocationPage.id }"/>
<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="matLocation" name="matLocation" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzLocationPage.matLocation}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">库存地点</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wz/tWzLocation.js"></script>

View File

@ -1,32 +0,0 @@
//通用弹出式文件上传
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

@ -1,52 +0,0 @@
<%@ 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="tWzLocationList" checkbox="true" pagination="true" fitColumns="true" title="库存地点" actionUrl="tWzLocationController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="库存地点" field="matLocation" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="tWzLocationController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="tWzLocationController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzLocationController.do?goUpdate" funname="update"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzLocationController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzLocationController.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/wz/tWzLocationList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzLocationController.do?upload', "tWzLocationList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzLocationController.do?exportXls","tWzLocationList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzLocationController.do?exportXlsByT","tWzLocationList");
}
</script>

View File

@ -1,220 +0,0 @@
<%@ 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>物料</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="tWzMaterialController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzMaterialPage.id }"/>
<table style="width: 800px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
产品大类:
</label>
</td>
<td class="value">
<t:dictSelect field="by2" type="list" extendJson="{class:'form-control';datatype:'*'}"
dictTable="ba_deg_type" dictField="deg_type_code" dictText="deg_type_name" hasLabel="false" title="产品大类"></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">
<t:dictSelect field="by3" type="list" extendJson="{class:'form-control';datatype:'*'}"
dictTable="ba_goods_type" dictField="goods_type_code" dictText="goods_type_name" hasLabel="false" title="产品小类"></t:dictSelect>
<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="by4" name="by4" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
</td>
<td align="right">
<label class="Validform_label">
所属设备:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
库位:
</label>
</td>
<td class="value">
<input id="by7" name="by7" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
</td>
<td align="right">
<label class="Validform_label">
库区:
</label>
</td>
<td class="value">
<input id="by8" name="by8" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
物料编码:
</label>
</td>
<td class="value">
<input id="matCode" name="matCode" type="text" style="width: 150px" class="inputxt" validType="t_wz_material,mat_code,id" datatype="*" ignore="checked" />
<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">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" />
<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="matName" name="matName" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
<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">
<t:dictSelect field="matUnit" type="list" datatype="*" dictTable="ba_unit" dictField="UNIT_CODE" dictText="UNIT_ZH_NAME" defaultVal="${tWzMaterialPage.matUnit}" hasLabel="false" title="单位" ></t:dictSelect>
<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="matGuige" name="matGuige" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
<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">
<input id="matClass" name="matClass" 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="matPrice" name="matPrice" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />--%>
<%-- <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">
<input id="matAqkc" name="matAqkc" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
<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">
<t:dictSelect field="matLocation" type="list" datatype="*" dictTable="t_wz_location" dictField="mat_location" dictText="mat_location" defaultVal="${tWzMaterialPage.matLocation}" hasLabel="false" title="库存地点" ></t:dictSelect>
<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:webUploader auto="true" name="by6" duplicate="true" fileNumLimit="1"></t:webUploader>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wz/tWzMaterial.js"></script>

View File

@ -1,205 +0,0 @@
<%@ 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>物料</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="tWzMaterialController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzMaterialPage.id }"/>
<table style="width: 800px;" cellpadding="0" cellspacing="1" class="formtable">
<tr >
<tr>
<td align="right">
<label class="Validform_label">
产品大类:
</label>
</td>
<td class="value">
<t:dictSelect field="by2" type="list" extendJson="{class:'form-control';datatype:'*'}"
dictTable="ba_deg_type" dictField="deg_type_code" dictText="deg_type_name" defaultVal="${tWzMaterialPage.by2}" hasLabel="false" title="产品大类"></t:dictSelect>
</td>
<td align="right">
<label class="Validform_label">
产品小类:
</label>
</td>
<td class="value">
<t:dictSelect field="by3" type="list" extendJson="{class:'form-control';datatype:'*'}"
dictTable="ba_goods_type" dictField="goods_type_code" dictText="goods_type_name" defaultVal="${tWzMaterialPage.by3}" hasLabel="false" title="产品属性"></t:dictSelect>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
存储位置:
</label>
</td>
<td class="value">
<input id="by4" name="by4" type="text" style="width: 150px" class="inputxt" value='${tWzMaterialPage.by4}' datatype="*" ignore="checked" />
</td>
<td align="right">
<label class="Validform_label">
所属设备:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt" value='${tWzMaterialPage.by5}' datatype="*" ignore="checked" />
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
库位:
</label>
</td>
<td class="value">
<input id="by7" name="by7" type="text" style="width: 150px" class="inputxt" value='${tWzMaterialPage.by7}' datatype="*" ignore="checked" />
</td>
<td align="right">
<label class="Validform_label">
库区:
</label>
</td>
<td class="value">
<input id="by8" name="by8" type="text" style="width: 150px" class="inputxt" value='${tWzMaterialPage.by8}' datatype="*" ignore="checked" />
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
物料编码:
</label>
</td>
<td class="value">
<input id="matCode" name="matCode" type="text" style="width: 150px" class="inputxt" validType="t_wz_material,mat_code,id" datatype="*" ignore="checked" value='${tWzMaterialPage.matCode}'/>
</td>
<td align="right">
<label class="Validform_label">
物料条码:
</label>
</td>
<td class="value">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" value='${tWzMaterialPage.by1}'/>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
物料名称:
</label>
</td>
<td class="value">
<input id="matName" name="matName" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzMaterialPage.matName}'/>
</td>
<td align="right">
<label class="Validform_label">
单位:
</label>
</td>
<td class="value">
<t:dictSelect field="matUnit" type="list" datatype="*" dictTable="ba_unit" dictField="UNIT_CODE" dictText="UNIT_ZH_NAME" defaultVal="${tWzMaterialPage.matUnit}" hasLabel="false" title="单位" ></t:dictSelect>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
规格:
</label>
</td>
<td class="value">
<input id="matGuige" name="matGuige" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzMaterialPage.matGuige}'/>
</td>
<td align="right">
<label class="Validform_label">
等级:
</label>
</td>
<td class="value">
<input id="matClass" name="matClass" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzMaterialPage.matClass}'/>
<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="matPrice" name="matPrice" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzMaterialPage.matPrice}'/>--%>
<%-- </td>--%>
<td align="right">
<label class="Validform_label">
安全库存:
</label>
</td>
<td class="value">
<input id="matAqkc" name="matAqkc" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzMaterialPage.matAqkc}'/>
</td>
<td align="right">
<label class="Validform_label">
库存地点:
</label>
</td>
<td class="value">
<t:dictSelect field="matLocation" type="list" datatype="*" dictTable="t_wz_location" dictField="mat_location" dictText="mat_location" defaultVal="${tWzMaterialPage.matLocation}" hasLabel="false" title="库存地点" ></t:dictSelect>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
附件:
</label>
</td>
<td class="value">
<t:webUploader auto="true" pathValues="${tWzMaterialPage.by6}" name="by6" duplicate="true" fileNumLimit="1"></t:webUploader>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wz/tWzMaterial.js"></script>

View File

@ -1,32 +0,0 @@
//通用弹出式文件上传
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

@ -1,67 +0,0 @@
<%@ 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="tWzMaterialList" checkbox="true" pagination="true" fitColumns="true" title="物料" actionUrl="tWzMaterialController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="物料编码" field="matCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="物料名称" field="matName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单位" field="matUnit" queryMode="single" dictionary="ba_unit,UNIT_CODE,UNIT_ZH_NAME" width="120"></t:dgCol>
<t:dgCol title="规格" field="matGuige" queryMode="single" width="80"></t:dgCol>
<t:dgCol title="等级" field="matClass" queryMode="single" width="80"></t:dgCol>
<%-- <t:dgCol title="标准价元" field="matPrice" queryMode="single" width="80"></t:dgCol>--%>
<t:dgCol title="安全库存" field="matAqkc" queryMode="single" width="80"></t:dgCol>
<t:dgCol title="库存地点" field="matLocation" queryMode="single" dictionary="t_wz_location,mat_location,mat_location" width="120"></t:dgCol>
<t:dgCol title="物料条码" field="by1" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="产品大类" field="by2" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="产品小类" field="by3" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="存储位置" field="by4" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属设备" field="by5" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="物资图片" field="by6" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="库位" field="by7" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="库区" field="by8" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="tWzMaterialController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="tWzMaterialController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzMaterialController.do?goUpdate" funname="update"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzMaterialController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzMaterialController.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/wz/tWzMaterialList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzMaterialController.do?upload', "tWzMaterialList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzMaterialController.do?exportXls","tWzMaterialList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzMaterialController.do?exportXlsByT","tWzMaterialList");
}
</script>

View File

@ -1,70 +0,0 @@
<%@ 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>审批配置</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="tWzSpConfController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzSpConfPage.id }"/>
<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="spType" name="spType" 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="spJine" name="spJine" 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="spUsername" name="spUsername" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
<t:userSelect title="用户名称" selectedNamesInputId="userNames" selectedIdsInputId="spUsername" windowWidth="1000px" windowHeight="600px"></t:userSelect>
<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="spRemark" name="spRemark" 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/wz/tWzSpConf.js"></script>

View File

@ -1,70 +0,0 @@
<%@ 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>审批配置</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="tWzSpConfController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzSpConfPage.id }"/>
<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="spType" name="spType" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzSpConfPage.spType}'/>
<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="spJine" name="spJine" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzSpConfPage.spJine}'/>
<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="spUsername" name="spUsername" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzSpConfPage.spUsername}'/>--%>
<t:userSelect title="用户名称" selectedNamesInputId="userNames" selectedIdsInputId="spUsername" windowWidth="1000px" windowHeight="600px"></t:userSelect>
<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="spRemark" name="spRemark" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzSpConfPage.spRemark}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">备注</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wz/tWzSpConf.js"></script>

View File

@ -1,32 +0,0 @@
//通用弹出式文件上传
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

@ -1,55 +0,0 @@
<%@ 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="tWzSpConfList" checkbox="true" pagination="true" fitColumns="true" title="审批配置" actionUrl="tWzSpConfController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="审批类型" field="spType" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="最低金额" field="spJine" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="审批人" field="spUsername" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备注" field="spRemark" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgDelOpt title="删除" url="tWzSpConfController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="tWzSpConfController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzSpConfController.do?goUpdate" funname="update"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzSpConfController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<%--<t:dgToolBar title="查看" icon="icon-search" url="tWzSpConfController.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/wz/tWzSpConfList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzSpConfController.do?upload', "tWzSpConfList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzSpConfController.do?exportXls","tWzSpConfList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzSpConfController.do?exportXlsByT","tWzSpConfList");
}
</script>

View File

@ -1,117 +0,0 @@
<%@ 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>v_wz_po_wq</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="vWzPoWqController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${vWzPoWqPage.id }"/>
<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="matCode" name="matCode" 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="matName" name="matName" 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="matUnit" name="matUnit" 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="matLocation" name="matLocation" 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="matBatch" name="matBatch" 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="matPrice" name="matPrice" 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="matQty" name="matQty" 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">
matQtyWq:
</label>
</td>
<td class="value">
<input id="matQtyWq" name="matQtyWq" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">matQtyWq</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wzpo/vWzPoWq.js"></script>

View File

@ -1,116 +0,0 @@
<%@ 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>v_wz_po_wq</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="vWzPoWqController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${vWzPoWqPage.id }"/>
<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="matCode" name="matCode" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matCode}'/>
<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="matName" name="matName" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matName}'/>
<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="matUnit" name="matUnit" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matUnit}'/>
<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="matLocation" name="matLocation" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matLocation}'/>
<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="matBatch" name="matBatch" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matBatch}'/>
<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="matPrice" name="matPrice" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matPrice}'/>
<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="matQty" name="matQty" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${vWzPoWqPage.matQty}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">数量</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
matQtyWq:
</label>
</td>
<td class="value">
<input id="matQtyWq" name="matQtyWq" type="text" style="width: 150px" class="inputxt" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" value='${vWzPoWqPage.matQtyWq}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">matQtyWq</label>
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wzpo/vWzPoWq.js"></script>

View File

@ -1,32 +0,0 @@
//通用弹出式文件上传
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

@ -1,132 +0,0 @@
<%@ 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="vWzPoWqList" checkbox="true" pagination="true" fitColumns="true" title="批量采购入库" actionUrl="vWzPoWqController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="id" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="供应商编码" field="vendorCode" query="true" queryMode="single" dictionary="wz_pop_vendor,vendorCode,vendorName,vendor_code,vendor_name" popup="true" width="120"></t:dgCol>
<t:dgCol title="供应商名称" field="vendorName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单备注" field="poRemark" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="物料编码" field="matCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="物料名称" field="matName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单位" field="matUnit" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="仓库" field="matLocation" extendParams="editor:'text'" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="批次" field="matBatch" extendParams="editor:'text'" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="入库数量" field="matQtyWq" extendParams="editor:'text'" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="未清数量" field="matQtyWq1" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="标准价" field="matPrice" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="订单数量" field="matQty" queryMode="group" width="120"></t:dgCol>
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
<t:dgToolBar title="开始入库" icon="icon-edit" funname="editRow"></t:dgToolBar>
<t:dgToolBar title="入库保存" icon="icon-save" url="vWzPoWqController.do?saveRows" funname="saveData"></t:dgToolBar>
<t:dgToolBar title="取消编辑" icon="icon-undo" funname="reject"></t:dgToolBar>
<%--<t:dgDelOpt title="删除" url="vWzPoWqController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<%--<t:dgToolBar title="录入" icon="icon-add" url="vWzPoWqController.do?goAdd" funname="add"></t:dgToolBar>--%>
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="vWzPoWqController.do?goUpdate" funname="update"></t:dgToolBar>--%>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="vWzPoWqController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<%--<t:dgToolBar title="查看" icon="icon-search" url="vWzPoWqController.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/wzpo/vWzPoWqList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//添加行
function addRow(title,addurl,gname){
$('#'+gname).datagrid('appendRow',{});
var editIndex = $('#'+gname).datagrid('getRows').length-1;
$('#'+gname).datagrid('selectRow', editIndex)
.datagrid('beginEdit', editIndex);
}
//保存数据
function saveData(title,addurl,gname){
if(!endEdit(gname))
return false;
var rows=$('#'+gname).datagrid("getChanges","inserted");
var uprows=$('#'+gname).datagrid("getChanges","updated");
rows=rows.concat(uprows);
if(rows.length<=0){
tip("没有需要保存的数据!")
return false;
}
var result={};
for(var i=0;i<rows.length;i++){
for(var d in rows[i]){
result["demos["+i+"]."+d]=rows[i][d];
}
}
$.ajax({
url:"<%=basePath%>/"+addurl,
type:"post",
data:result,
dataType:"json",
success:function(data){
tip(data.msg);
if(data.success){
$('#vWzPoWqList').datagrid('reload',{});
}
}
})
}
//结束编辑
function endEdit(gname){
var editIndex = $('#'+gname).datagrid('getRows').length-1;
for(var i=0;i<=editIndex;i++){
if($('#'+gname).datagrid('validateRow', i)){
$('#'+gname).datagrid('endEdit', i);
}else{
tip("请选择必填项(带有红色三角形状的字段)!");
return false;
}
}
return true;
}
//编辑行
function editRow(title,addurl,gname){
var rows=$('#'+gname).datagrid("getChecked");
if(rows.length==0){
tip("请选择条目");
return false;
}
for(var i=0;i<rows.length;i++){
var index= $('#'+gname).datagrid('getRowIndex', rows[i]);
$('#'+gname).datagrid('beginEdit', index);
}
}
//取消编辑
function reject(title,addurl,gname){
$('#'+gname).datagrid('clearChecked');
$('#'+gname).datagrid('rejectChanges');
}
//导入
function ImportXls() {
openwindow('Excel导入', 'vWzPoWqController.do?upload', "vWzPoWqList");
}
//导出
function ExportXls() {
JeecgExcelExport("vWzPoWqController.do?exportXls","vWzPoWqList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("vWzPoWqController.do?exportXlsByT","vWzPoWqList");
}
</script>

View File

@ -1,332 +0,0 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>交旧领新登记表</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="online/template/ledefault/css/vendor.css">
<link rel="stylesheet" href="online/template/ledefault/css/bootstrap-theme.css">
<link rel="stylesheet" href="online/template/ledefault/css/bootstrap.css">
<link rel="stylesheet" href="online/template/ledefault/css/app.css">
<link rel="stylesheet" href="plug-in/Validform/css/metrole/style.css" type="text/css"/>
<link rel="stylesheet" href="plug-in/Validform/css/metrole/tablefrom.css" type="text/css"/>
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript" src="plug-in/tools/dataformat.js"></script>
<script type="text/javascript" src="plug-in/easyui/jquery.easyui.min.1.3.2.js"></script>
<script type="text/javascript" src="plug-in/easyui/locale/zh-cn.js"></script>
<script type="text/javascript" src="plug-in/tools/syUtil.js"></script>
<script type="text/javascript" src="plug-in/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="plug-in/lhgDialog/lhgdialog.min.js"></script>
<script type="text/javascript" src="plug-in/tools/curdtools_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/tools/easyuiextend.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/Validform_v5.3.1_min_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/Validform_Datatype_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/datatype_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/plugin/passwordStrength/passwordStrength-min.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tWzRepairController.do?doAdd" tiptype="1" >
<input type="hidden" id="btn_sub" class="btn_sub"/>
<input type="hidden" id="id" name="id"/>
<div class="tab-wrapper">
<!-- tab -->
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="javascript:void(0);">交旧领新登记表</a></li>
</ul>
<!-- tab内容 -->
<div class="con-wrapper" id="con-wrapper1" style="display: block;">
<div class="row form-wrapper">
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建人名称:</b>
</div>
<div class="col-xs-3">
<input id="createName" name="createName" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建人名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建人登录名称:</b>
</div>
<div class="col-xs-3">
<input id="createBy" name="createBy" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建人登录名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建日期:</b>
</div>
<div class="col-xs-3">
<input id="createDate" name="createDate" type="text"
ignore="ignore"
style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker()" type="date" pattern="yyyy-MM-dd"/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建日期</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>物料编码:</b>
</div>
<div class="col-xs-3">
<input id="matCode" name="matCode" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">物料编码</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>物料名称:</b>
</div>
<div class="col-xs-3">
<input id="matName" name="matName" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">物料名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>库存地点:</b>
</div>
<div class="col-xs-3">
<input id="matLocation" name="matLocation" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">库存地点</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>数量:</b>
</div>
<div class="col-xs-3">
<input id="matQty" name="matQty" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">数量</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>规格:</b>
</div>
<div class="col-xs-3">
<input id="matGuige" name="matGuige" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">规格</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>单位:</b>
</div>
<div class="col-xs-3">
<input id="matUnit" name="matUnit" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">单位</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>原价值:</b>
</div>
<div class="col-xs-3">
<input id="matOriamount" name="matOriamount" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">原价值</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>现价值:</b>
</div>
<div class="col-xs-3">
<input id="matNowamount" name="matNowamount" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">现价值</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复时间:</b>
</div>
<div class="col-xs-3">
<input id="repairDate" name="repairDate" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复时间</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复人:</b>
</div>
<div class="col-xs-3">
<input id="repairUser" name="repairUser" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复人</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>验收人:</b>
</div>
<div class="col-xs-3">
<input id="qmUser" name="qmUser" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">验收人</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复备注:</b>
</div>
<div class="col-xs-3">
<textarea id="repairRemark" class="form-control" rows="6"
ignore="ignore"
name="repairRemark"></textarea>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复备注</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>出库单号:</b>
</div>
<div class="col-xs-3">
<input id="ckId" name="ckId" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">出库单号</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>出库项目:</b>
</div>
<div class="col-xs-3">
<input id="ckItmeId" name="ckItmeId" type="text" class="form-control"
ignore="ignore"
/>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">出库项目</label>
</div>
</div>
<div class="row" id = "sub_tr" style="display: none;">
<div class="col-xs-12 layout-header">
<div class="col-xs-6"></div>
<div class="col-xs-6"><button type="button" onclick="neibuClick();" class="btn btn-default">提交</button></div>
</div>
</div>
</div>
</div>
<div class="con-wrapper" id="con-wrapper2" style="display: block;"></div>
</div>
</t:formvalid>
<script type="text/javascript">
$(function(){
//查看模式情况下,删除和上传附件功能禁止使用
if(location.href.indexOf("load=detail")!=-1){
$(".jeecgDetail").hide();
}
if(location.href.indexOf("mode=read")!=-1){
//查看模式控件禁用
$("#formobj").find(":input").attr("disabled","disabled");
}
if(location.href.indexOf("mode=onbutton")!=-1){
//其他模式显示提交按钮
$("#sub_tr").show();
}
});
var neibuClickFlag = false;
function neibuClick() {
neibuClickFlag = true;
$('#btn_sub').trigger('click');
}
</script>
</body>
<script src = "webpage/com/zzjee/wzrepair/tWzRepair.js"></script>
</html>

View File

@ -1,332 +0,0 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>交旧领新登记表</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="online/template/ledefault/css/vendor.css">
<link rel="stylesheet" href="online/template/ledefault/css/bootstrap-theme.css">
<link rel="stylesheet" href="online/template/ledefault/css/bootstrap.css">
<link rel="stylesheet" href="online/template/ledefault/css/app.css">
<link rel="stylesheet" href="plug-in/Validform/css/metrole/style.css" type="text/css"/>
<link rel="stylesheet" href="plug-in/Validform/css/metrole/tablefrom.css" type="text/css"/>
<script type="text/javascript" src="plug-in/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript" src="plug-in/tools/dataformat.js"></script>
<script type="text/javascript" src="plug-in/easyui/jquery.easyui.min.1.3.2.js"></script>
<script type="text/javascript" src="plug-in/easyui/locale/zh-cn.js"></script>
<script type="text/javascript" src="plug-in/tools/syUtil.js"></script>
<script type="text/javascript" src="plug-in/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="plug-in/lhgDialog/lhgdialog.min.js"></script>
<script type="text/javascript" src="plug-in/tools/curdtools_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/tools/easyuiextend.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/Validform_v5.3.1_min_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/Validform_Datatype_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/js/datatype_zh-cn.js"></script>
<script type="text/javascript" src="plug-in/Validform/plugin/passwordStrength/passwordStrength-min.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="plug-in/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tWzRepairController.do?doUpdate" tiptype="1" >
<input type="hidden" id="btn_sub" class="btn_sub"/>
<input type="hidden" name="id" value='${tWzRepairPage.id}' >
<div class="tab-wrapper">
<!-- tab -->
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a href="javascript:void(0);">交旧领新登记表</a></li>
</ul>
<!-- tab内容 -->
<div class="con-wrapper" id="con-wrapper1" style="display: block;">
<div class="row form-wrapper">
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建人名称:</b>
</div>
<div class="col-xs-3">
<input id="createName" name="createName" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.createName}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建人名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建人登录名称:</b>
</div>
<div class="col-xs-3">
<input id="createBy" name="createBy" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.createBy}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建人登录名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>创建日期:</b>
</div>
<div class="col-xs-3">
<input id="createDate" name="createDate" type="text"
ignore="ignore"
style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker()" value='<fmt:formatDate value='${tWzRepairPage.createDate}' type="date" pattern="yyyy-MM-dd"/>' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">创建日期</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>物料编码:</b>
</div>
<div class="col-xs-3">
<input id="matCode" name="matCode" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matCode}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">物料编码</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>物料名称:</b>
</div>
<div class="col-xs-3">
<input id="matName" name="matName" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matName}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">物料名称</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>库存地点:</b>
</div>
<div class="col-xs-3">
<input id="matLocation" name="matLocation" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matLocation}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">库存地点</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>数量:</b>
</div>
<div class="col-xs-3">
<input id="matQty" name="matQty" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matQty}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">数量</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>规格:</b>
</div>
<div class="col-xs-3">
<input id="matGuige" name="matGuige" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matGuige}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">规格</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>单位:</b>
</div>
<div class="col-xs-3">
<input id="matUnit" name="matUnit" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matUnit}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">单位</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>原价值:</b>
</div>
<div class="col-xs-3">
<input id="matOriamount" name="matOriamount" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matOriamount}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">原价值</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>现价值:</b>
</div>
<div class="col-xs-3">
<input id="matNowamount" name="matNowamount" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.matNowamount}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">现价值</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复时间:</b>
</div>
<div class="col-xs-3">
<input id="repairDate" name="repairDate" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.repairDate}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复时间</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复人:</b>
</div>
<div class="col-xs-3">
<input id="repairUser" name="repairUser" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.repairUser}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复人</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>验收人:</b>
</div>
<div class="col-xs-3">
<input id="qmUser" name="qmUser" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.qmUser}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">验收人</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>修复备注:</b>
</div>
<div class="col-xs-3">
<textarea id="repairRemark" class="form-control" rows="6"
ignore="ignore"
name="repairRemark">${tWzRepairPage.repairRemark}</textarea>
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">修复备注</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>出库单号:</b>
</div>
<div class="col-xs-3">
<input id="ckId" name="ckId" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.ckId}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">出库单号</label>
</div>
</div>
<div class="row show-grid">
<div class="col-xs-3 text-center">
<b>出库项目:</b>
</div>
<div class="col-xs-3">
<input id="ckItmeId" name="ckItmeId" type="text" class="form-control"
ignore="ignore"
value='${tWzRepairPage.ckItmeId}' />
<span class="Validform_checktip" style="float:left;height:0px;"></span>
<label class="Validform_label" style="display: none">出库项目</label>
</div>
</div>
<div class="row" id = "sub_tr" style="display: none;">
<div class="col-xs-12 layout-header">
<div class="col-xs-6"></div>
<div class="col-xs-6"><button type="button" onclick="neibuClick();" class="btn btn-default">提交</button></div>
</div>
</div>
</div>
</div>
<div class="con-wrapper" id="con-wrapper2" style="display: block;"></div>
</div>
</t:formvalid>
<script type="text/javascript">
$(function(){
//查看模式情况下,删除和上传附件功能禁止使用
if(location.href.indexOf("load=detail")!=-1){
$(".jeecgDetail").hide();
}
if(location.href.indexOf("mode=read")!=-1){
//查看模式控件禁用
$("#formobj").find(":input").attr("disabled","disabled");
}
if(location.href.indexOf("mode=onbutton")!=-1){
//其他模式显示提交按钮
$("#sub_tr").show();
}
});
var neibuClickFlag = false;
function neibuClick() {
neibuClickFlag = true;
$('#btn_sub').trigger('click');
}
</script>
</body>
<script src = "webpage/com/zzjee/wzrepair/tWzRepair.js"></script>
</html>

View File

@ -1,28 +0,0 @@
//通用弹出式文件上传
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 decode(value, id) {//value传入值,id接受值
var last = value.lastIndexOf("/");
var filename = value.substring(last + 1, value.length);
$("#" + id).text(decodeURIComponent(filename));
}

View File

@ -1,66 +0,0 @@
<%@ 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="tWzRepairList" checkbox="false" pagination="true" fitColumns="false" title="交旧领新登记表" actionUrl="tWzRepairController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgCol title="物料编码" field="matCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="物料名称" field="matName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="库存地点" field="matLocation" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="数量" field="matQty" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="规格" field="matGuige" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单位" field="matUnit" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="原价值" field="matOriamount" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="现价值" field="matNowamount" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="修复时间" field="repairDate" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="修复人" field="repairUser" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="验收人" field="qmUser" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="修复备注" field="repairRemark" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="出库单号" field="ckId" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="出库项目" field="ckItmeId" queryMode="single" width="120"></t:dgCol>--%>
<t:dgDelOpt title="删除" url="tWzRepairController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="手工新增" icon="icon-add" url="tWzRepairController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="修复" icon="icon-edit" url="tWzRepairController.do?goUpdate" funname="update"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzRepairController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzRepairController.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/wzrepair/tWzRepairList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzRepairController.do?upload', "tWzRepairList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzRepairController.do?exportXls","tWzRepairList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzRepairController.do?exportXlsByT","tWzRepairList");
}
</script>

View File

@ -1,186 +0,0 @@
<%@ 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>物料出库</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" beforeSubmit="doAddcheck()" action="tWzCkHeadController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzCkHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">出库类别:</label>
</td>
<td class="value">
<t:dictSelect field="by1" type="radio" defaultVal="领料出库" typeGroupCode="wz_cklb" hasLabel="false" title="出库类别" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
<td align="right">
<label class="Validform_label">业务类型 :</label>
</td>
<td class="value">
<t:dictSelect field="by2" type="radio" defaultVal="出库" typeGroupCode="wz_ywlx" hasLabel="false" title="业务类型" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">再利用程度 :</label>
</td>
<td>
<t:dictSelect field="by3" type="radio" defaultVal="正常出库" typeGroupCode="wz_zlycd" hasLabel="false" title="再利用程度" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
<td align="right">
<label class="Validform_label">手工审批:</label>
</td>
<td class="value">
<t:dictSelect field="ckSgsp" type="radio" typeGroupCode="sf_yn" defaultVal="N" hasLabel="false" title="手工审批" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
<%--<td align="right">--%>
<%--<label class="Validform_label">领用人:</label>--%>
<%--</td>--%>
<%--<td class="value">--%>
<%--&lt;%&ndash;<input id="ckUsername" name="ckUsername" type="text" style="width: 150px" class="inputxt" ignore="ignore" />&ndash;%&gt;--%>
<%--<span class="Validform_checktip"></span>--%>
<%--<label class="Validform_label" style="display: none;">领用人</label>--%>
<%--</td>--%>
</tr>
<tr>
<td align="right">
<label class="Validform_label">领用人(${usernametext}):</label>
</td>
<td class="value">
<%--<t:userSelect userNamesDefalutVal='${username}' title="用户名称" selectedNamesInputId="ckName" selectedIdsInputId="ckUsername" readonly="readonly" windowWidth="1000px" windowHeight="600px"></t:userSelect>--%>
<input id="ckUsername" name="ckUsername" type="text" value='${username}' readonly="readonly" style="width: 150px" class="inputxt" ignore="ignore" />不可更改
<span class="Validform_checktip"></span>
</td>
<td align="right">
<label class="Validform_label">单据日期:</label>
</td>
<td class="value">
<input id="docDate" name="docDate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()" ignore="ignore" />
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">出库备注:</label>
</td>
<td class="value" colspan="3">
<input id="ckRemark" name="ckRemark" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<%--<td align="right">--%>
<%--<label class="Validform_label">附件:</label>--%>
<%--</td>--%>
<%--<td class="value">--%>
<%--<input id="ckFujian" name="ckFujian" 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>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzCkHeadController.do?tWzCkItemList&id=${tWzCkHeadPage.id}" icon="icon-search" title="出库项目" id="tWzCkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzCkItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzCkItemList[#index#].matCode" name="tWzCkItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_batch,mat_price','matCode,matName,matUnit,matLocation,matBatch,matPrice','wz_stock_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].itemRemark" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matAmount" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].by2" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</tbody>
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzCkHead.js"></script>

View File

@ -1,339 +0,0 @@
<%@ 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>物料出库</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<%--<c:if test="${tWzCkHeadPage.bpmStatus eq 0}">--%>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tWzCkHeadController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzCkHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">领用部门:</label>
</td>
<td class="value">
<input id="orgCode" name="orgCode" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.orgCode}'/>
<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">
<input id="orgName" name="orgName" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.orgName}'/>
<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="ckUsername" name="ckUsername" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.ckUsername}'/>
<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">
<input id="ckName" name="ckName" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.ckName}'/>
<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="docDate" name="docDate" type="text" style="width: 150px" ignore="ignore" onClick="WdatePicker()" value='${tWzCkHeadPage.docDate}' />
<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">
<input id="ckRemark" name="ckRemark" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.ckRemark}'/>
<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="ckSgsp" type="radio" typeGroupCode="sf_yn" defaultVal="${tWzCkHeadPage.ckSgsp}" hasLabel="false" title="手工审批"></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
<%--<td align="right">--%>
<%--<label class="Validform_label">附件:</label>--%>
<%--</td>--%>
<%--<td class="value">--%>
<%--<input id="ckFujian" name="ckFujian" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.ckFujian}'/>--%>
<%--<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">
<t:dictSelect field="by1" type="radio" typeGroupCode="wz_cklb" hasLabel="false" title="出库类别" defaultVal="${tWzCkHeadPage.by1}"></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">业务类型 :</label>
</td>
<td class="value">
<t:dictSelect field="by2" type="radio" typeGroupCode="wz_ywlx" hasLabel="false" title="业务类型" defaultVal="${tWzCkHeadPage.by2}" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
<td align="right">
<label class="Validform_label">再利用程度 :</label>
</td>
<td>
<t:dictSelect field="by3" type="radio" typeGroupCode="wz_zlycd" hasLabel="false" title="再利用程度" defaultVal="${tWzCkHeadPage.by3}" ></t:dictSelect>
<span class="Validform_checktip"></span>
</td>
</tr>
</table>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzCkHeadController.do?tWzCkItemList&id=${tWzCkHeadPage.id}" icon="icon-search" title="出库项目" id="tWzCkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzCkItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzCkItemList[#index#].matCode" name="tWzCkItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_batch,mat_price','matCode,matName,matUnit,matLocation,matBatch,matPrice','wz_stock_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].itemRemark" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].matAmount" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].by2" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</tbody>
</table>
<%--</c:if>--%>
<%--<c:if test="${tWzCkHeadPage.bpmStatus eq 1}">--%>
<%--<input id="id" name="id" type="hidden" value="${tWzCkHeadPage.id }"/>--%>
<%--<table cellpadding="0" cellspacing="1" class="formtable">--%>
<%--<tr>--%>
<%--<td align="right">--%>
<%--<label class="Validform_label">领用部门:</label>--%>
<%--</td>--%>
<%--<td class="value">--%>
<%--<input name="orgCode" type="text" style="width: 150px" readonly="readonly" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.orgCode}'/>--%>
<%--<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">--%>
<%--<input name="orgName" type="text" style="width: 150px" readonly="readonly" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.orgName}'/>--%>
<%--<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 name="ckUsername" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value='${tWzCkHeadPage.ckUsername}'/>--%>
<%--<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">--%>
<%--<input name="ckName" type="text" style="width: 150px" class="inputxt" ignore="ignore" readonly="readonly" value='${tWzCkHeadPage.ckName}'/>--%>
<%--<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 name="docDate" type="text" style="width: 150px" readonly="readonly" ignore="ignore" value='${tWzCkHeadPage.docDate}' />--%>
<%--<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">--%>
<%--<input name="ckRemark" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value='${tWzCkHeadPage.ckRemark}'/>--%>
<%--<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="ckSgsp" type="radio" readonly="readonly" typeGroupCode="sf_yn" defaultVal="${tWzCkHeadPage.ckSgsp}" hasLabel="false" title="手工审批"></t:dictSelect>--%>
<%--<span class="Validform_checktip"></span>--%>
<%--<label class="Validform_label" style="display: none;">手工审批</label>--%>
<%--</td>--%>
<%--&lt;%&ndash;<td align="right">&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="Validform_label">附件:</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</td>&ndash;%&gt;--%>
<%--&lt;%&ndash;<td class="value">&ndash;%&gt;--%>
<%--&lt;%&ndash;<input id="ckFujian" name="ckFujian" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzCkHeadPage.ckFujian}'/>&ndash;%&gt;--%>
<%--&lt;%&ndash;<span class="Validform_checktip"></span>&ndash;%&gt;--%>
<%--&lt;%&ndash;<label class="Validform_label" style="display: none;">附件</label>&ndash;%&gt;--%>
<%--&lt;%&ndash;</td>&ndash;%&gt;--%>
<%--</tr>--%>
<%--</table>--%>
<%--<div style="width: auto;height: 200px;">--%>
<%--&lt;%&ndash; 增加一个div用于调节页面大小否则默认太小 &ndash;%&gt;--%>
<%--<div style="width:800px;height:1px;"></div>--%>
<%--<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">--%>
<%--<t:tab href="tWzCkHeadController.do?tWzCkItemListUnEdit&id=${tWzCkHeadPage.id}" icon="icon-search" title="出库商品" id="tWzCkItem"></t:tab>--%>
<%--</t:tabs>--%>
<%--</div>--%>
<%--<table style="display:none">--%>
<%--<tbody id="add_tWzCkItem_table_template2">--%>
<%--<tr>--%>
<%--<td align="center"><div style="width: 25px;" name="xh"></div></td>--%>
<%--<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matCode" readonly="readonly" name="tWzCkItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_batch,mat_price','matCode,matName,matUnit,matLocation,matBatch,matPrice','wz_stock_pop')" value="${poVal.matCode }" />--%>
<%--<label class="Validform_label" style="display: none;">物料编码</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matName" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">物料名称</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matQty" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />--%>
<%--<label class="Validform_label" style="display: none;">数量</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matUnit" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">单位</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matLocation" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">仓库</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matBatch" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">批次</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].matPrice" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">单价</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].itemRemark" readonly="readonly" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">备注</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].by1" readonly="readonly" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">备注2</label>--%>
<%--</td>--%>
<%--<td align="left">--%>
<%--<input name="tWzCkItemList[#index#].by2" readonly="readonly" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />--%>
<%--<label class="Validform_label" style="display: none;">备注3</label>--%>
<%--</td>--%>
<%--</tr>--%>
<%--</tbody>--%>
<%--</table>--%>
<%--</c:if>--%>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzCkHead.js"></script>

View File

@ -1,120 +0,0 @@
function doAddcheck(name) {
// tWzCkHeadController.do?doAddcheck;
var flag = true;
var msghe = '';
$("#tWzCkItem_table tr").each(function(){
fieldname = $(this).find("td:eq(2)>input").val();
fieldnamevalue = $(this).find("td:eq(4)>input").val();
fieldnamelo = $(this).find("td:eq(6)>input").val();
if (fieldname !== null && (typeof fieldname != 'undefined') && fieldname !== '') {
var url = "tWzCkHeadController.do?doAddcheck&mat_code="+fieldname+"&mat_location="+fieldnamelo+"&mat_qty="+fieldnamevalue;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
}else{
flag = false;
msghe = msghe +"/" + d.msg;
}
}
});
// tWzCkHeadController.do?doAddcheck;
}
// fieldnamevalue = $(this).find("td:eq(4)>input").val();
// if (fieldnamevalue !== null || (typeof(fieldnamevalue != 'undefined') || fieldnamevalue !== '') {
// alert(fieldnamevalue);
// }
})
if(!flag){
tip(msghe);
return false;
}
}
//初始化下标
function resetTrNum(tableId) {
$tbody = $("#"+tableId+"");
$tbody.find('>tr').each(function(i){
$(':input, select,button,a', this).each(function(){
var $this = $(this),validtype_str = $this.attr('validType'), name = $this.attr('name'),id=$this.attr('id'),onclick_str=$this.attr('onclick'), val = $this.val();
if(name!=null){
if (name.indexOf("#index#") >= 0){
$this.attr("name",name.replace('#index#',i));
}else{
var s = name.indexOf("[");
var e = name.indexOf("]");
var new_name = name.substring(s+1,e);
$this.attr("name",name.replace(new_name,i));
}
}
if(id!=null){
if (id.indexOf("#index#") >= 0){
$this.attr("id",id.replace('#index#',i));
}else{
var s = id.indexOf("[");
var e = id.indexOf("]");
var new_id = id.substring(s+1,e);
$this.attr("id",id.replace(new_id,i));
}
}
if(onclick_str!=null){
if (onclick_str.indexOf("#index#") >= 0){
$this.attr("onclick",onclick_str.replace(/#index#/g,i));
}else{
}
}
if(validtype_str!=null){
if(validtype_str.indexOf("#index#") >= 0){
$this.attr("validType",validtype_str.replace('#index#',i));
}
}
});
$(this).find('div[name=\'xh\']').html(i+1);
});
}
//通用弹出式文件上传
function commonUpload(callback,inputId){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:getzIndex(),
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback,inputId);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
//通用弹出式文件上传-回调
function commonUploadDefaultCallBack(url,name,inputId){
$("#"+inputId+"_href").attr('href',url).html('下载');
$("#"+inputId).val(url);
}
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

@ -1,91 +0,0 @@
<%@ 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="tWzCkHeadList" checkbox="true" sortOrder="desc" sortName="id" fitColumns="true" title="物料出库" actionUrl="tWzCkHeadController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="领用部门" field="orgCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用部门名称" field="orgName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用人" field="ckUsername" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用人名字" field="ckName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单据日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="整单价值" field="ckValue" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="出库备注" field="ckRemark" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="手工审批" field="ckSgsp" queryMode="single" dictionary="sf_yn" width="120"></t:dgCol>
<%--<t:dgCol title="附件" field="ckFujian" queryMode="single" width="120"></t:dgCol>--%>
<t:dgCol title="备用1" field="by1" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用2" field="by2" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用3" field="by3" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用4" field="by4" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用5" field="by5" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgFunOpt title="打印" funname="doprint(id)" exp="bpmStatus#eq#1" urlclass="ace_button"/>
<%--<t:dgFunOpt title="审批" funname="doUpdatesp(id)" exp="bpmStatus#eq#0" urlclass="ace_button" operationCode="wzcksp"/>--%>
<%--<t:dgDelOpt title="删除" url="tWzCkHeadController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<t:dgToolBar title="出库" icon="icon-add" url="tWzCkHeadController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tWzCkHeadController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>--%>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzCkHeadController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzCkHeadController.do?goUpdate" funname="detail" width="100%" height="100%"></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/wzyw/tWzCkHeadList.js"></script>
<script type="text/javascript">
function doUpdatesp(id) {
var url = "tWzCkHeadController.do?doUpdatesp&id="+id;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
tip("成功");
$('#tWzCkHeadList').datagrid('reload',{});
}
}
});
}
function doprint(id){
var url = "tWzCkHeadController.do?doPrint&id="+id;
window.open(url);
}
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzCkHeadController.do?upload', "tWzCkHeadList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzCkHeadController.do?exportXls","tWzCkHeadList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzCkHeadController.do?exportXlsByT","tWzCkHeadList");
}
</script>

View File

@ -1,80 +0,0 @@
<%@ 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="tWzCkHeadList" checkbox="true" sortOrder="desc" sortName="id" fitColumns="true" title="物料出库" actionUrl="tWzCkHeadController.do?datagridsp" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>
<t:dgCol title="领用部门" field="orgCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用部门名称" field="orgName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用人" field="ckUsername" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="领用人名字" field="ckName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="单据日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="整单价值" field="ckValue" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="出库备注" field="ckRemark" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="手工审批" field="ckSgsp" queryMode="single" dictionary="sf_yn" width="120"></t:dgCol>
<%--<t:dgCol title="附件" field="ckFujian" queryMode="single" width="120"></t:dgCol>--%>
<t:dgCol title="备用1" field="by1" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用2" field="by2" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用3" field="by3" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用4" field="by4" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用5" field="by5" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgFunOpt title="审批" funname="dosp(id)" urlclass="ace_button" />
<%--<t:dgDelOpt title="删除" url="tWzCkHeadController.do?doUpdatesp&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<t:dgToolBar title="出库" icon="icon-add" url="tWzCkHeadController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzCkHeadController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzCkHeadController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="tWzCkHeadController.do?goUpdate" funname="detail" width="100%" height="100%"></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/wzyw/tWzCkHeadList.js"></script>
<script type="text/javascript">
function dosp(id) {
var url = "tWzCkHeadController.do?doUpdatesp&id="+id;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
tip("成功");
$('#tWzCkHeadList').datagrid('reload',{});
}
}
});
}
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzCkHeadController.do?upload', "tWzCkHeadList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzCkHeadController.do?exportXls","tWzCkHeadList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzCkHeadController.do?exportXlsByT","tWzCkHeadList");
}
</script>

View File

@ -1,241 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#addTWzCkItemBtn').linkbutton({
iconCls: 'icon-add'
});
$('#delTWzCkItemBtn').linkbutton({
iconCls: 'icon-remove'
});
$('#addTWzCkItemBtn').bind('click', function(){
var tr = $("#add_tWzCkItem_table_template tr").clone();
$("#add_tWzCkItem_table").append(tr);
resetTrNum('add_tWzCkItem_table');
return false;
});
$('#delTWzCkItemBtn').bind('click', function(){
$("#add_tWzCkItem_table").find("input:checked").parent().parent().remove();
resetTrNum('add_tWzCkItem_table');
return false;
});
$(document).ready(function(){
$(".datagrid-toolbar").parent().css("width","auto");
if(location.href.indexOf("load=detail")!=-1){
$(":input").attr("disabled","true");
$(".datagrid-toolbar").hide();
}
});
function countby1() {
var orQty = 0;
var cpTiji = 0;
var count = 0;
$tbody = $("#add_tWzCkItem_table");
console.log($tbody );
$tbody.find('>tr').each(function(i) {
console.log("i============"+i );
orQty = 0;
cpTiji = 0;
count = 0;
var $by1;
$(':input, select,button,a', this).each(function () {
var $this = $(this), validtype_str = $this.attr('validType'), name = $this.attr('name'),
id = $this.attr('id'), onclick_str = $this.attr('onclick'), val = $this.val() ,value = $this.attr('value');
value = 1*value;
if (name.indexOf("matQty") >= 0 ) {
if(value>0){
orQty = 1* value;
}
}
if (name.indexOf("matPrice") >= 0 ) {
if(value>0){
cpTiji = 1* value;
}
}
if (name.indexOf("matAmount") >= 0 ) {
$by1 = $this;
}
});
count = orQty*cpTiji;
count = count.toFixed(2)
$by1.attr("value",count);
});
}
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
<a id="addTWzCkItemBtn" href="#">添加</a> <a id="delTWzCkItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzCkItem_table">
<tr bgcolor="#E6E6E6">
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料编码
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料名称
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
数量
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
单位
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
仓库
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
批次
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
单价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
总价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
</td>
</tr>
<tbody id="add_tWzCkItem_table">
<c:if test="${fn:length(tWzCkItemList) <= 0 }">
<tr>
<td align="center"><div style="width: 25px;" name="xh">1</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<input name="tWzCkItemList[0].id" type="hidden"/>
<input name="tWzCkItemList[0].createName" type="hidden"/>
<input name="tWzCkItemList[0].createBy" type="hidden"/>
<input name="tWzCkItemList[0].createDate" type="hidden"/>
<input name="tWzCkItemList[0].updateName" type="hidden"/>
<input name="tWzCkItemList[0].updateBy" type="hidden"/>
<input name="tWzCkItemList[0].updateDate" type="hidden"/>
<input name="tWzCkItemList[0].sysOrgCode" type="hidden"/>
<input name="tWzCkItemList[0].sysCompanyCode" type="hidden"/>
<input name="tWzCkItemList[0].bpmStatus" type="hidden"/>
<input name="tWzCkItemList[0].wzckHid" type="hidden"/>
<%-- <input name="tWzCkItemList[0].matAmount" type="hidden"/>--%>
<input name="tWzCkItemList[0].by1" type="hidden"/>
<%-- <input name="tWzCkItemList[0].by2" type="hidden"/>--%>
<input name="tWzCkItemList[0].by3" type="hidden"/>
<input name="tWzCkItemList[0].by4" type="hidden"/>
<input name="tWzCkItemList[0].by5" type="hidden"/>
<td align="left">
<input id="tWzCkItemList[0].matCode" name="tWzCkItemList[0].matCode" type="text" style="width: 150px" class="searchbox-inputtext" value="${poVal.matCode }" datatype="*" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_batch,mat_price','matCode,matName,matUnit,matLocation,matBatch,matPrice','wz_stock_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matQty" oninput="countby1()" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matPrice" oninput="countby1()" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].itemRemark" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matAmount" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].by2" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:if>
<c:if test="${fn:length(tWzCkItemList) > 0 }">
<c:forEach items="${tWzCkItemList}" var="poVal" varStatus="stuts">
<tr>
<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
<input name="tWzCkItemList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
<input name="tWzCkItemList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
<input name="tWzCkItemList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
<input name="tWzCkItemList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
<input name="tWzCkItemList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
<input name="tWzCkItemList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
<input name="tWzCkItemList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
<input name="tWzCkItemList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
<input name="tWzCkItemList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
<input name="tWzCkItemList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
<input name="tWzCkItemList[${stuts.index }].wzckHid" type="hidden" value="${poVal.wzckHid }"/>
<%-- <input name="tWzCkItemList[${stuts.index }].matAmount" type="hidden" value="${poVal.matAmount }"/>--%>
<%-- <input name="tWzCkItemList[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>--%>
<input name="tWzCkItemList[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>
<input name="tWzCkItemList[${stuts.index }].by3" type="hidden" value="${poVal.by3 }"/>
<input name="tWzCkItemList[${stuts.index }].by4" type="hidden" value="${poVal.by4 }"/>
<input name="tWzCkItemList[${stuts.index }].by5" type="hidden" value="${poVal.by5 }"/>
<td align="left">
<input id="tWzCkItemList[${stuts.index }].matCode" name="tWzCkItemList[${stuts.index }].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_batch,mat_price','matCode,matName,matUnit,matLocation,matBatch,matPrice','wz_stock_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" value="${poVal.matName }"/>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matQty" oninput="countby1()" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matQty }"/>
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" value="${poVal.matUnit }"/>
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="ignore" value="${poVal.matLocation }"/>
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matBatch }"/>
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matPrice" oninput="countby1()" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matPrice }"/>
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].itemRemark" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.itemRemark }"/>
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matAmount" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matAmount }"/>
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].by2" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by2 }"/>
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>

View File

@ -1,197 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#addTWzCkItemBtn').linkbutton({
iconCls: 'icon-add'
});
$('#delTWzCkItemBtn').linkbutton({
iconCls: 'icon-remove'
});
$('#addTWzCkItemBtn').bind('click', function(){
var tr = $("#add_tWzCkItem_table_template tr").clone();
$("#add_tWzCkItem_table").append(tr);
resetTrNum('add_tWzCkItem_table');
return false;
});
$('#delTWzCkItemBtn').bind('click', function(){
$("#add_tWzCkItem_table").find("input:checked").parent().parent().remove();
resetTrNum('add_tWzCkItem_table');
return false;
});
$(document).ready(function(){
$(".datagrid-toolbar").parent().css("width","auto");
if(location.href.indexOf("load=detail")!=-1){
$(":input").attr("disabled","true");
$(".datagrid-toolbar").hide();
}
});
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
<a id="addTWzCkItemBtn" href="#">添加</a> <a id="delTWzCkItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzCkItem_table">
<tr bgcolor="#E6E6E6">
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料编码
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料名称
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
数量
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
单位
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
仓库
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
批次
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
单价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
总价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
</td>
</tr>
<tbody id="add_tWzCkItem_table">
<c:if test="${fn:length(tWzCkItemList) <= 0 }">
<tr>
<td align="center"><div style="width: 25px;" name="xh">1</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<input name="tWzCkItemList[0].id" type="hidden"/>
<input name="tWzCkItemList[0].createName" type="hidden"/>
<input name="tWzCkItemList[0].createBy" type="hidden"/>
<input name="tWzCkItemList[0].createDate" type="hidden"/>
<input name="tWzCkItemList[0].updateName" type="hidden"/>
<input name="tWzCkItemList[0].updateBy" type="hidden"/>
<input name="tWzCkItemList[0].updateDate" type="hidden"/>
<input name="tWzCkItemList[0].sysOrgCode" type="hidden"/>
<input name="tWzCkItemList[0].sysCompanyCode" type="hidden"/>
<input name="tWzCkItemList[0].bpmStatus" type="hidden"/>
<input name="tWzCkItemList[0].wzckHid" type="hidden"/>
<%-- <input name="tWzCkItemList[0].matAmount" type="hidden"/>--%>
<%-- <input name="tWzCkItemList[0].by1" type="hidden"/>--%>
<input name="tWzCkItemList[0].by2" type="hidden"/>
<input name="tWzCkItemList[0].by3" type="hidden"/>
<input name="tWzCkItemList[0].by4" type="hidden"/>
<input name="tWzCkItemList[0].by5" type="hidden"/>
<td align="left">
<input id="tWzCkItemList[0].matCode" name="tWzCkItemList[0].matCode" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${poVal.matCode }" datatype="*" ignore="ignore"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" >
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].itemRemark" maxlength="232" type="text" class="inputxt" readonly="readonly" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].matAmount" maxlength="232" type="text" class="inputxt" readonly="readonly" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].by2" maxlength="232" type="text" class="inputxt" readonly="readonly" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:if>
<c:if test="${fn:length(tWzCkItemList) > 0 }">
<c:forEach items="${tWzCkItemList}" var="poVal" varStatus="stuts">
<tr>
<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
<input name="tWzCkItemList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
<input name="tWzCkItemList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
<input name="tWzCkItemList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
<input name="tWzCkItemList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
<input name="tWzCkItemList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
<input name="tWzCkItemList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
<input name="tWzCkItemList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
<input name="tWzCkItemList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
<input name="tWzCkItemList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
<input name="tWzCkItemList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
<input name="tWzCkItemList[${stuts.index }].wzckHid" type="hidden" value="${poVal.wzckHid }"/>
<%-- <input name="tWzCkItemList[${stuts.index }].matAmount" type="hidden" value="${poVal.matAmount }"/>--%>
<%-- <input name="tWzCkItemList[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>--%>
<input name="tWzCkItemList[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>
<input name="tWzCkItemList[${stuts.index }].by3" type="hidden" value="${poVal.by3 }"/>
<input name="tWzCkItemList[${stuts.index }].by4" type="hidden" value="${poVal.by4 }"/>
<input name="tWzCkItemList[${stuts.index }].by5" type="hidden" value="${poVal.by5 }"/>
<td align="left">
<input id="tWzCkItemList[${stuts.index }].matCode" name="tWzCkItemList[${stuts.index }].matCode" type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="*" ignore="ignore" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" value="${poVal.matName }"/>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" value="${poVal.matQty }"/>
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" value="${poVal.matUnit }"/>
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="ignore" value="${poVal.matLocation }"/>
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" value="${poVal.matBatch }"/>
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matPrice }"/>
<label class="Validform_label" style="display: none;">单价</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].itemRemark" maxlength="232" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" value="${poVal.itemRemark }"/>
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].matAmount" maxlength="232" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" value="${poVal.by1 }"/>
<label class="Validform_label" style="display: none;">总价</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].by2" maxlength="232" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" value="${poVal.by2 }"/>
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>

View File

@ -1,143 +0,0 @@
<%@ 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>物料采购订单</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tWzPoHeadController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzPoHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">供应商编码:</label>
</td>
<td class="value">
<input id="vendorCode" name="vendorCode" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore" onclick="popupClick(this,'vendor_code,vendor_name','vendorCode,vendorName','wz_pop_vendor')"/>
<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">
<input id="vendorName" name="vendorName" 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="docDate" name="docDate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()" ignore="ignore" />
<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">
<input id="poRemark" name="poRemark" 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">
<t:dictSelect field="poBy1" type="radio" defaultVal="集中采购" typeGroupCode="wz_cglb" hasLabel="false" title="采购类别" ></t:dictSelect>
</td>
</tr>
</table>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzPoHeadController.do?tWzPoItemList&id=${tWzPoHeadPage.id}" icon="icon-search" title="采购订单行项目" id="tWzPoItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzPoItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzPoItemList[#index#].matCode" name="tWzPoItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
</tr>
</tbody>
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzPoHead.js"></script>

View File

@ -1,145 +0,0 @@
<%@ 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>物料采购订单</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tWzPoHeadController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzPoHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">供应商编码:</label>
</td>
<td class="value">
<input id="vendorCode" name="vendorCode" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore" onclick="popupClick(this,'vendorCode,vendorName','wz_pop_vendor')" value='${tWzPoHeadPage.vendorCode}'/>
<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">
<input id="vendorName" name="vendorName" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzPoHeadPage.vendorName}'/>
<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="docDate" name="docDate" type="text" style="width: 150px" ignore="ignore" value='<fmt:formatDate value='${tWzPoHeadPage.docDate}' type="date" pattern="yyyy-MM-dd"/>'/>
<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">
<input id="poRemark" name="poRemark" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzPoHeadPage.poRemark}'/>
<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="poBy1" type="radio" typeGroupCode="wz_cglb" hasLabel="false" defaultVal='${tWzPoHeadPage.poBy1}' title="采购类别" ></t:dictSelect>
</td>
</tr>
</table>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzPoHeadController.do?tWzPoItemList&id=${tWzPoHeadPage.id}" icon="icon-search" title="采购订单行项目" id="tWzPoItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzPoItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzPoItemList[#index#].matCode" name="tWzPoItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzPoItemList[#index#].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
</tr>
</tbody>
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzPoHead.js"></script>

View File

@ -1,78 +0,0 @@
//初始化下标
function resetTrNum(tableId) {
$tbody = $("#"+tableId+"");
$tbody.find('>tr').each(function(i){
$(':input, select,button,a', this).each(function(){
var $this = $(this),validtype_str = $this.attr('validType'), name = $this.attr('name'),id=$this.attr('id'),onclick_str=$this.attr('onclick'), val = $this.val();
if(name!=null){
if (name.indexOf("#index#") >= 0){
$this.attr("name",name.replace('#index#',i));
}else{
var s = name.indexOf("[");
var e = name.indexOf("]");
var new_name = name.substring(s+1,e);
$this.attr("name",name.replace(new_name,i));
}
}
if(id!=null){
if (id.indexOf("#index#") >= 0){
$this.attr("id",id.replace('#index#',i));
}else{
var s = id.indexOf("[");
var e = id.indexOf("]");
var new_id = id.substring(s+1,e);
$this.attr("id",id.replace(new_id,i));
}
}
if(onclick_str!=null){
if (onclick_str.indexOf("#index#") >= 0){
$this.attr("onclick",onclick_str.replace(/#index#/g,i));
}else{
}
}
if(validtype_str!=null){
if(validtype_str.indexOf("#index#") >= 0){
$this.attr("validType",validtype_str.replace('#index#',i));
}
}
});
$(this).find('div[name=\'xh\']').html(i+1);
});
}
//通用弹出式文件上传
function commonUpload(callback,inputId){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:getzIndex(),
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback,inputId);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
//通用弹出式文件上传-回调
function commonUploadDefaultCallBack(url,name,inputId){
$("#"+inputId+"_href").attr('href',url).html('下载');
$("#"+inputId).val(url);
}
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

@ -1,79 +0,0 @@
<%@ 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="tWzPoHeadList" checkbox="true" sortOrder="desc" sortName="id" fitColumns="true" title="物料采购订单" actionUrl="tWzPoHeadController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="操作" field="opt" width="160"></t:dgCol>
<t:dgCol title="主键" field="id" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>--%>
<t:dgCol title="供应商编码" field="vendorCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="供应商名称" field="vendorName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单备注" field="poRemark" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购类别" field="poBy1" query="true" dictionary="wz_cglb" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用2" field="poBy2" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用3" field="poBy3" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用4" field="poBy4" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgDelOpt title="删除" url="tWzPoHeadController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o" exp="bpmStatus#eq#1"/>
<t:dgFunOpt title="完成" funname="docom(id)" urlclass="ace_button" exp="bpmStatus#eq#2" />
<%--<t:dgFunOpt title="打印" funname="doprint(id)" urlclass="ace_button" exp="bpmStatus#eq#2" /> --%>
<t:dgFunOpt title="打印" funname="doprint(id)" urlclass="ace_button" />
<t:dgToolBar title="下单" icon="icon-add" url="tWzPoHeadController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzPoHeadController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzPoHeadController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzPoHeadController.do?goUpdate" funname="detail" width="100%" height="100%"></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/wzyw/tWzPoHeadList.js"></script>
<script type="text/javascript">
function doprint(id) {
var url = "tWzPoHeadController.do?doPrint&id="+id;
window.open(url);
}
function docom(id) {
var url = "tWzPoHeadController.do?doUpdatecom&id="+id;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
tip("成功");
$('#tWzPoHeadList').datagrid('reload',{});
}
}
});
}
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzPoHeadController.do?upload', "tWzPoHeadList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzPoHeadController.do?exportXls","tWzPoHeadList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzPoHeadController.do?exportXlsByT","tWzPoHeadList");
}
</script>

View File

@ -1,73 +0,0 @@
<%@ 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="tWzPoHeadList" checkbox="true" sortOrder="desc" sortName="id" fitColumns="true" title="物料采购订单" actionUrl="tWzPoHeadController.do?datagridsp" idField="id" fit="true" queryMode="group">
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgCol title="主键" field="id" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>--%>
<t:dgCol title="供应商编码" field="vendorCode" query="true" width="120"></t:dgCol>
<t:dgCol title="供应商名称" field="vendorName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="采购订单备注" field="poRemark" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用1" field="poBy1" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用2" field="poBy2" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用3" field="poBy3" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用4" field="poBy4" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgFunOpt title="审批" funname="dosp(id)" urlclass="ace_button" />
<%--<t:dgToolBar title="下单" icon="icon-add" url="tWzPoHeadController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>--%>
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tWzPoHeadController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>--%>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzPoHeadController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzPoHeadController.do?goUpdate" funname="detail" width="100%" height="100%"></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/wzyw/tWzPoHeadList.js"></script>
<script type="text/javascript">
function dosp(id) {
var url = "tWzPoHeadController.do?doUpdatesp&id="+id;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
tip("成功");
$('#tWzPoHeadList').datagrid('reload',{});
}
}
});
}
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzPoHeadController.do?upload', "tWzPoHeadList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzPoHeadController.do?exportXls","tWzPoHeadList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzPoHeadController.do?exportXlsByT","tWzPoHeadList");
}
</script>

View File

@ -1,173 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#addTWzPoItemBtn').linkbutton({
iconCls: 'icon-add'
});
$('#delTWzPoItemBtn').linkbutton({
iconCls: 'icon-remove'
});
$('#addTWzPoItemBtn').bind('click', function(){
var tr = $("#add_tWzPoItem_table_template tr").clone();
$("#add_tWzPoItem_table").append(tr);
resetTrNum('add_tWzPoItem_table');
return false;
});
$('#delTWzPoItemBtn').bind('click', function(){
$("#add_tWzPoItem_table").find("input:checked").parent().parent().remove();
resetTrNum('add_tWzPoItem_table');
return false;
});
$(document).ready(function(){
$(".datagrid-toolbar").parent().css("width","auto");
if(location.href.indexOf("load=detail")!=-1){
$(":input").attr("disabled","true");
$(".datagrid-toolbar").hide();
}
});
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
<a id="addTWzPoItemBtn" href="#">添加</a> <a id="delTWzPoItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzPoItem_table">
<tr bgcolor="#E6E6E6">
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料编码
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料名称
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
数量
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
单位
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
仓库
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
批次
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
标准价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注
</td>
</tr>
<tbody id="add_tWzPoItem_table">
<c:if test="${fn:length(tWzPoItemList) <= 0 }">
<tr>
<td align="center"><div style="width: 25px;" name="xh">1</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<input name="tWzPoItemList[0].id" type="hidden"/>
<input name="tWzPoItemList[0].createName" type="hidden"/>
<input name="tWzPoItemList[0].createBy" type="hidden"/>
<input name="tWzPoItemList[0].createDate" type="hidden"/>
<input name="tWzPoItemList[0].updateName" type="hidden"/>
<input name="tWzPoItemList[0].updateBy" type="hidden"/>
<input name="tWzPoItemList[0].updateDate" type="hidden"/>
<input name="tWzPoItemList[0].sysOrgCode" type="hidden"/>
<input name="tWzPoItemList[0].sysCompanyCode" type="hidden"/>
<input name="tWzPoItemList[0].bpmStatus" type="hidden"/>
<input name="tWzPoItemList[0].poId" type="hidden"/>
<input name="tWzPoItemList[0].matAmount" type="hidden"/>
<input name="tWzPoItemList[0].by1" type="hidden"/>
<input name="tWzPoItemList[0].by2" type="hidden"/>
<input name="tWzPoItemList[0].by3" type="hidden"/>
<input name="tWzPoItemList[0].matQtyWq" type="hidden"/>
<td align="left">
<input id="tWzPoItemList[0].matCode" name="tWzPoItemList[0].matCode" type="text" style="width: 150px" class="searchbox-inputtext" value="${poVal.matCode }" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzPoItemList[0].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注</label>
</td>
</tr>
</c:if>
<c:if test="${fn:length(tWzPoItemList) > 0 }">
<c:forEach items="${tWzPoItemList}" var="poVal" varStatus="stuts">
<tr>
<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
<input name="tWzPoItemList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
<input name="tWzPoItemList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
<input name="tWzPoItemList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
<input name="tWzPoItemList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
<input name="tWzPoItemList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
<input name="tWzPoItemList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
<input name="tWzPoItemList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
<input name="tWzPoItemList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
<input name="tWzPoItemList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
<input name="tWzPoItemList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
<input name="tWzPoItemList[${stuts.index }].poId" type="hidden" value="${poVal.poId }"/>
<input name="tWzPoItemList[${stuts.index }].matAmount" type="hidden" value="${poVal.matAmount }"/>
<input name="tWzPoItemList[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>
<input name="tWzPoItemList[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>
<input name="tWzPoItemList[${stuts.index }].by3" type="hidden" value="${poVal.by3 }"/>
<input name="tWzPoItemList[${stuts.index }].matQtyWq" type="hidden" value="${poVal.matQtyWq }"/>
<td align="left">
<input id="tWzPoItemList[${stuts.index }].matCode" name="tWzPoItemList[${stuts.index }].matCode" type="text" style="width: 150px" class="searchbox-inputtext" ignore="ignore" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matName }"/>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matQty }"/>
<label class="Validform_label" style="display: none;">数量</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matUnit }"/>
<label class="Validform_label" style="display: none;">单位</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matLocation }"/>
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matBatch }"/>
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matPrice }"/>
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzPoItemList[${stuts.index }].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.itemRemark }"/>
<label class="Validform_label" style="display: none;">备注</label>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>

View File

@ -1,153 +0,0 @@
<%@ 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>入库抬头</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tWzRkHeadController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${tWzRkHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">供应商编码:</label>
</td>
<td class="value">
<input id="vendorCode" name="vendorCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" onclick="popupClick(this,'vendor_code,vendor_name','vendorCode,vendorName','wz_pop_vendor')"/>
<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">
<input id="vendorName" name="vendorName" 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>
<tr>
<td align="right">
<label class="Validform_label">入库日期:</label>
</td>
<td class="value">
<input id="docDate" name="docDate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()" ignore="ignore" />
<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">
<input id="rkRemark" name="rkRemark" 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="rkFujian" name="rkFujian" 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>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzRkHeadController.do?tWzRkItemList&id=${tWzRkHeadPage.id}" icon="icon-search" title="入库商品" id="tWzRkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzRkItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzRkItemList[#index#].matCode" name="tWzRkItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by1" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by2" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</tbody>
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzRkHead.js"></script>

View File

@ -1,268 +0,0 @@
<%@ 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>入库抬头</title>
<style>
.ui-button {
display: inline-block;
padding: 2px 2px;
margin-bottom: 0;
font-size: 8px;
font-weight: normal;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
</style>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
$(document).ready(function(){
$('#tt').tabs({
onSelect:function(title){
$('#tt .panel-body').css('width','auto');
}
});
$('#tt2').tabs({
onSelect:function(title){
$('#tt2 .panel-body').css('width','auto');
}
});
$(".tabs-wrap").css('width','100%');
});
</script>
</head>
<body style="overflow-x: hidden;">
<c:if test="${tWzRkHeadPage.bpmStatus eq 0}">
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="tWzRkHeadController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${tWzRkHeadPage.id }"/>
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">供应商编码:</label>
</td>
<td class="value">
<input id="vendorCode" name="vendorCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" value='${tWzRkHeadPage.vendorCode}'/>
<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">
<input id="vendorName" name="vendorName" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzRkHeadPage.vendorName}'/>
<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="docDate" name="docDate" type="text" style="width: 150px" ignore="ignore" onClick="WdatePicker()" value='${tWzRkHeadPage.docDate}'/>
<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">
<input id="rkRemark" name="rkRemark" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzRkHeadPage.rkRemark}'/>
<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="rkFujian" name="rkFujian" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzRkHeadPage.rkFujian}'/>--%>
<%--<span class="Validform_checktip"></span>--%>
<%--<label class="Validform_label" style="display: none;">附件</label>--%>
<%--</td>--%>
<%--</tr>--%>
</table>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzRkHeadController.do?tWzRkItemList&id=${tWzRkHeadPage.id}" icon="icon-search" title="入库商品" id="tWzRkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
<!-- 添加 附表明细 模版 -->
<table style="display:none">
<tbody id="add_tWzRkItem_table_template">
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzRkItemList[#index#].matCode" name="tWzRkItemList[#index#].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by1" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by2" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</tbody>
</table>
</c:if>
<c:if test="${tWzRkHeadPage.bpmStatus eq 1}">
<table cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">供应商编码:</label>
</td>
<td class="value">
<input name="vendorCode2" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" readonly="readonly" value='${tWzRkHeadPage.vendorCode}'/>
<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">
<input name="vendorName2" type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="*" ignore="checked" value='${tWzRkHeadPage.vendorName}'/>
<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 name="docDate2" type="text" style="width: 150px" ignore="ignore" readonly="readonly" value='${tWzRkHeadPage.docDate}'/>
<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">
<input name="rkRemark2" type="text" style="width: 150px" class="inputxt" ignore="ignore" readonly="readonly" value='${tWzRkHeadPage.rkRemark}'/>
<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="rkFujian" name="rkFujian" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzRkHeadPage.rkFujian}'/>--%>
<%--<span class="Validform_checktip"></span>--%>
<%--<label class="Validform_label" style="display: none;">附件</label>--%>
<%--</td>--%>
<%--</tr>--%>
</table>
<div style="width: auto;height: 200px;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<div style="width:800px;height:1px;"></div>
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
<t:tab href="tWzRkHeadController.do?tWzRkItemListUnEdit&id=${tWzRkHeadPage.id}" title="入库商品" id="tWzRkItem"></t:tab>
</t:tabs>
</div>
<table style="display:none">
<tbody>
<tr>
<td align="center"><div style="width: 25px;" name="xh"></div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<td align="left">
<input name="tWzRkItemList[#index#].matCode" value="${poVal.matCode }" type="text" style="width: 150px" datatype="*" ignore="checked" readonly="readonly"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" value="${poVal.matName}" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matQty" value="${poVal.matQty}" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matUnit" value="${poVal.matUnit}" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matLocation" value="${poVal.matLocation}" maxlength="32" type="text" class="inputxt" readonly="readonly" style="width:120px;" datatype="*" ignore="checked" />
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matBatch" value="${poVal.matBatch}" maxlength="32" type="text" class="inputxt" readonly="readonly" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].matPrice" value="${poVal.matPrice}" maxlength="32" type="text" readonly="readonly" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].itemRemark" value="${poVal.itemRemark}" maxlength="32" readonly="readonly" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by1" value="${poVal.by1}" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[#index#].by2" value="${poVal.by2}" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</tbody>
</table>
</c:if>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzRkHead.js"></script>

View File

@ -1,78 +0,0 @@
//初始化下标
function resetTrNum(tableId) {
$tbody = $("#"+tableId+"");
$tbody.find('>tr').each(function(i){
$(':input, select,button,a', this).each(function(){
var $this = $(this),validtype_str = $this.attr('validType'), name = $this.attr('name'),id=$this.attr('id'),onclick_str=$this.attr('onclick'), val = $this.val();
if(name!=null){
if (name.indexOf("#index#") >= 0){
$this.attr("name",name.replace('#index#',i));
}else{
var s = name.indexOf("[");
var e = name.indexOf("]");
var new_name = name.substring(s+1,e);
$this.attr("name",name.replace(new_name,i));
}
}
if(id!=null){
if (id.indexOf("#index#") >= 0){
$this.attr("id",id.replace('#index#',i));
}else{
var s = id.indexOf("[");
var e = id.indexOf("]");
var new_id = id.substring(s+1,e);
$this.attr("id",id.replace(new_id,i));
}
}
if(onclick_str!=null){
if (onclick_str.indexOf("#index#") >= 0){
$this.attr("onclick",onclick_str.replace(/#index#/g,i));
}else{
}
}
if(validtype_str!=null){
if(validtype_str.indexOf("#index#") >= 0){
$this.attr("validType",validtype_str.replace('#index#',i));
}
}
});
$(this).find('div[name=\'xh\']').html(i+1);
});
}
//通用弹出式文件上传
function commonUpload(callback,inputId){
$.dialog({
content: "url:systemController.do?commonUpload",
lock : true,
title:"文件上传",
zIndex:getzIndex(),
width:700,
height: 200,
parent:windowapi,
cache:false,
ok: function(){
var iframe = this.iframe.contentWindow;
iframe.uploadCallback(callback,inputId);
return true;
},
cancelVal: '关闭',
cancel: function(){
}
});
}
//通用弹出式文件上传-回调
function commonUploadDefaultCallBack(url,name,inputId){
$("#"+inputId+"_href").attr('href',url).html('下载');
$("#"+inputId).val(url);
}
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

@ -1,84 +0,0 @@
<%@ 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="tWzRkHeadList" checkbox="true" sortOrder="desc" sortName="id" fitColumns="true" title="入库抬头" actionUrl="tWzRkHeadController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="single" dictionary="bpm_status" width="120"></t:dgCol>--%>
<t:dgCol title="供应商编码" field="vendorCode" query="true" queryMode="single" dictionary="wz_pop_vendor,vendorCode,vendorName,vendor_code,vendor_name" popup="true" width="120"></t:dgCol>
<t:dgCol title="供应商名称" field="vendorName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="入库日期" field="docDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="入库备注" field="rkRemark" query="true" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="附件" field="rkFujian" queryMode="single" width="120"></t:dgCol>--%>
<t:dgCol title="备用1" field="by1" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用2" field="by2" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用3" field="by3" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用4" field="by4" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="备用5" field="by5" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgFunOpt title="打印" funname="doprint(id)" urlclass="ace_button" />
<%--<t:dgFunOpt title="审批" funname="doUpdatesp(id)" exp="bpmStatus#eq#0" urlclass="ace_button" operationCode="updatesp"/>--%>
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
<%--<t:dgDelOpt title="删除" url="tWzRkHeadController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<t:dgToolBar title="入库" icon="icon-add" url="tWzRkHeadController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="tWzRkHeadController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tWzRkHeadController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="tWzRkHeadController.do?goUpdate" funname="detail" width="100%" height="100%"></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/wzyw/tWzRkHeadList.js"></script>
<script type="text/javascript">
function doUpdatesp(id) {
var url = "tWzRkHeadController.do?doUpdatesp&id="+id;
$.ajax({
async : false,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
tip("成功");
$('#tWzRkHeadList').datagrid('reload',{});
}
}
});
}
function doprint(id){
var url = "tWzRkHeadController.do?doPrint&id="+id;
window.open(url);
}
//导入
function ImportXls() {
openwindow('Excel导入', 'tWzRkHeadController.do?upload', "tWzRkHeadList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzRkHeadController.do?exportXls","tWzRkHeadList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzRkHeadController.do?exportXlsByT","tWzRkHeadList");
}
</script>

View File

@ -1,199 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#addTWzRkItemBtn').linkbutton({
iconCls: 'icon-add'
});
$('#delTWzRkItemBtn').linkbutton({
iconCls: 'icon-remove'
});
$('#addTWzRkItemBtn').bind('click', function(){
var tr = $("#add_tWzRkItem_table_template tr").clone();
$("#add_tWzRkItem_table").append(tr);
resetTrNum('add_tWzRkItem_table');
return false;
});
$('#delTWzRkItemBtn').bind('click', function(){
$("#add_tWzRkItem_table").find("input:checked").parent().parent().remove();
resetTrNum('add_tWzRkItem_table');
return false;
});
$(document).ready(function(){
$(".datagrid-toolbar").parent().css("width","auto");
if(location.href.indexOf("load=detail")!=-1){
$(":input").attr("disabled","true");
$(".datagrid-toolbar").hide();
}
});
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
<a id="addTWzRkItemBtn" href="#">添加</a> <a id="delTWzRkItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzRkItem_table">
<tr bgcolor="#E6E6E6">
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料编码
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料名称
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
入库数量
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料单位
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
仓库
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
批次
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
标准价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注2
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
</td>
</tr>
<tbody id="add_tWzRkItem_table">
<c:if test="${fn:length(tWzRkItemList) <= 0 }">
<tr>
<td align="center"><div style="width: 25px;" name="xh">1</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<input name="tWzRkItemList[0].id" type="hidden"/>
<input name="tWzRkItemList[0].createName" type="hidden"/>
<input name="tWzRkItemList[0].createBy" type="hidden"/>
<input name="tWzRkItemList[0].createDate" type="hidden"/>
<input name="tWzRkItemList[0].updateName" type="hidden"/>
<input name="tWzRkItemList[0].updateBy" type="hidden"/>
<input name="tWzRkItemList[0].updateDate" type="hidden"/>
<input name="tWzRkItemList[0].sysOrgCode" type="hidden"/>
<input name="tWzRkItemList[0].sysCompanyCode" type="hidden"/>
<input name="tWzRkItemList[0].bpmStatus" type="hidden"/>
<input name="tWzRkItemList[0].wzrkHid" type="hidden"/>
<input name="tWzRkItemList[0].matAmount" type="hidden"/>
<input name="tWzRkItemList[0].by1" type="hidden"/>
<input name="tWzRkItemList[0].by2" type="hidden"/>
<input name="tWzRkItemList[0].by3" type="hidden"/>
<input name="tWzRkItemList[0].by4" type="hidden"/>
<input name="tWzRkItemList[0].by5" type="hidden"/>
<input name="tWzRkItemList[0].by6" type="hidden"/>
<td align="left">
<input id="tWzRkItemList[0].matCode" name="tWzRkItemList[0].matCode" type="text" style="width: 150px" class="searchbox-inputtext" value="${poVal.matCode }" datatype="*" ignore="checked" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].by1" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].by2" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:if>
<c:if test="${fn:length(tWzRkItemList) > 0 }">
<c:forEach items="${tWzRkItemList}" var="poVal" varStatus="stuts">
<tr>
<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
<input name="tWzRkItemList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
<input name="tWzRkItemList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
<input name="tWzRkItemList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
<input name="tWzRkItemList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
<input name="tWzRkItemList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
<input name="tWzRkItemList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
<input name="tWzRkItemList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
<input name="tWzRkItemList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
<input name="tWzRkItemList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
<input name="tWzRkItemList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
<input name="tWzRkItemList[${stuts.index }].wzrkHid" type="hidden" value="${poVal.wzrkHid }"/>
<input name="tWzRkItemList[${stuts.index }].matAmount" type="hidden" value="${poVal.matAmount }"/>
<input name="tWzRkItemList[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>
<input name="tWzRkItemList[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>
<input name="tWzRkItemList[${stuts.index }].by3" type="hidden" value="${poVal.by3 }"/>
<input name="tWzRkItemList[${stuts.index }].by4" type="hidden" value="${poVal.by4 }"/>
<input name="tWzRkItemList[${stuts.index }].by5" type="hidden" value="${poVal.by5 }"/>
<input name="tWzRkItemList[${stuts.index }].by6" type="hidden" value="${poVal.by6 }"/>
<td align="left">
<input id="tWzRkItemList[${stuts.index }].matCode" name="tWzRkItemList[${stuts.index }].matCode" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matName" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matName }"/>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matQty }"/>
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matUnit }"/>
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matLocation }"/>
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matBatch }"/>
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matPrice }"/>
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.itemRemark }"/>
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].by1" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by1 }"/>
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].by2" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by2 }"/>
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>

View File

@ -1,199 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#addTWzRkItemBtn').linkbutton({
iconCls: 'icon-add'
});
$('#delTWzRkItemBtn').linkbutton({
iconCls: 'icon-remove'
});
$('#addTWzRkItemBtn').bind('click', function(){
var tr = $("#add_tWzRkItem_table_template tr").clone();
$("#add_tWzRkItem_table").append(tr);
resetTrNum('add_tWzRkItem_table');
return false;
});
$('#delTWzRkItemBtn').bind('click', function(){
$("#add_tWzRkItem_table").find("input:checked").parent().parent().remove();
resetTrNum('add_tWzRkItem_table');
return false;
});
$(document).ready(function(){
$(".datagrid-toolbar").parent().css("width","auto");
if(location.href.indexOf("load=detail")!=-1){
$(":input").attr("disabled","true");
$(".datagrid-toolbar").hide();
}
});
</script>
<div style="padding: 3px; height: 25px;width:auto;" class="datagrid-toolbar">
<a id="addTWzRkItemBtn" href="#">添加</a> <a id="delTWzRkItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzRkItem_table">
<tr bgcolor="#E6E6E6">
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">序号</td>
<td align="center" bgcolor="#EEEEEE" style="width: 25px;">操作</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料编码
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料名称
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
入库数量
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
物料单位
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
仓库
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
批次
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
标准价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注2
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
</td>
</tr>
<tbody id="add_tWzRkItem_table">
<c:if test="${fn:length(tWzRkItemList) <= 0 }">
<tr>
<td align="center"><div style="width: 25px;" name="xh">1</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
<input name="tWzRkItemList[0].id" type="hidden"/>
<input name="tWzRkItemList[0].createName" type="hidden"/>
<input name="tWzRkItemList[0].createBy" type="hidden"/>
<input name="tWzRkItemList[0].createDate" type="hidden"/>
<input name="tWzRkItemList[0].updateName" type="hidden"/>
<input name="tWzRkItemList[0].updateBy" type="hidden"/>
<input name="tWzRkItemList[0].updateDate" type="hidden"/>
<input name="tWzRkItemList[0].sysOrgCode" type="hidden"/>
<input name="tWzRkItemList[0].sysCompanyCode" type="hidden"/>
<input name="tWzRkItemList[0].bpmStatus" type="hidden"/>
<input name="tWzRkItemList[0].wzrkHid" type="hidden"/>
<input name="tWzRkItemList[0].matAmount" type="hidden"/>
<input name="tWzRkItemList[0].by1" type="hidden"/>
<input name="tWzRkItemList[0].by2" type="hidden"/>
<input name="tWzRkItemList[0].by3" type="hidden"/>
<input name="tWzRkItemList[0].by4" type="hidden"/>
<input name="tWzRkItemList[0].by5" type="hidden"/>
<input name="tWzRkItemList[0].by6" type="hidden"/>
<td align="left">
<input id="tWzRkItemList[0].matCode" name="tWzRkItemList[0].matCode" type="text" style="width: 150px" class="searchbox-inputtext" value="${poVal.matCode }" readonly="readonly" datatype="*" ignore="checked"/>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matName" maxlength="32" type="text" class="inputxt" readonly="readonly" style="width:120px;" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matQty" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matUnit" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matLocation" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" datatype="*" ignore="checked" >
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matBatch" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].matPrice" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].itemRemark" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].by1" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[0].by2" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:if>
<c:if test="${fn:length(tWzRkItemList) > 0 }">
<c:forEach items="${tWzRkItemList}" var="poVal" varStatus="stuts">
<tr>
<td align="center"><div style="width: 25px;" name="xh">${stuts.index+1 }</div></td>
<td align="center"><input style="width:20px;" type="checkbox" name="ck" /></td>
<input name="tWzRkItemList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
<input name="tWzRkItemList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
<input name="tWzRkItemList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
<input name="tWzRkItemList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
<input name="tWzRkItemList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
<input name="tWzRkItemList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
<input name="tWzRkItemList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
<input name="tWzRkItemList[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
<input name="tWzRkItemList[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
<input name="tWzRkItemList[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
<input name="tWzRkItemList[${stuts.index }].wzrkHid" type="hidden" value="${poVal.wzrkHid }"/>
<input name="tWzRkItemList[${stuts.index }].matAmount" type="hidden" value="${poVal.matAmount }"/>
<input name="tWzRkItemList[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>
<input name="tWzRkItemList[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>
<input name="tWzRkItemList[${stuts.index }].by3" type="hidden" value="${poVal.by3 }"/>
<input name="tWzRkItemList[${stuts.index }].by4" type="hidden" value="${poVal.by4 }"/>
<input name="tWzRkItemList[${stuts.index }].by5" type="hidden" value="${poVal.by5 }"/>
<input name="tWzRkItemList[${stuts.index }].by6" type="hidden" value="${poVal.by6 }"/>
<td align="left">
<input id="tWzRkItemList[${stuts.index }].matCode" readonly="readonly" name="tWzRkItemList[${stuts.index }].matCode" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" onclick="popupClick(this,'mat_code,mat_name,mat_unit,mat_location,mat_price','matCode,matName,matUnit,matLocation,matPrice','wz_material_pop')" value="${poVal.matCode }" />
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matName" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matName }"/>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matQty" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matQty }"/>
<label class="Validform_label" style="display: none;">入库数量</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matUnit" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matUnit }"/>
<label class="Validform_label" style="display: none;">物料单位</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matLocation" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="*" ignore="checked" value="${poVal.matLocation }"/>
<label class="Validform_label" style="display: none;">仓库</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matBatch" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matBatch }"/>
<label class="Validform_label" style="display: none;">批次</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].matPrice" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.matPrice }"/>
<label class="Validform_label" style="display: none;">标准价</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].itemRemark" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.itemRemark }"/>
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].by1" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by1 }"/>
<label class="Validform_label" style="display: none;">备注2</label>
</td>
<td align="left">
<input name="tWzRkItemList[${stuts.index }].by2" readonly="readonly" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by2 }"/>
<label class="Validform_label" style="display: none;">备注3</label>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>