物资管理:物资业务更新

master
erzhongxmu 2020-04-26 04:09:18 +08:00
parent 8dc6f51bee
commit 1e99ae91ca
61 changed files with 4484 additions and 2266 deletions

View File

@ -0,0 +1,81 @@
package com.zzjee.wmutil;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.web.system.service.SystemService;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* User: caoez
* Date: 13-7-26
* Time: 2:07
*/
public class erpUtil {
public static List removeDuplicate(List list) {
for ( int i = 0 ; i < list.size() - 1 ; i ++ ) {
for ( int j = list.size() - 1 ; j > i; j -- ) {
if (list.get(j).equals(list.get(i))) {
list.remove(j);
}
}
}
return list;
}
//通过客户商品编码或者WMS商品编码和单位找到WMS编码
public static String geterpys(String poitemid,String matcode,String bcsl){
Map<String,String> resultmap = new HashMap<>();
String yssl= "0.00";
String ddsl= "0.00";
String res = "";
SystemService systemService = ApplicationContextUtil.getContext().getBean(SystemService.class);
String tsql = "SELECT sum(mat_qty) as sumqty FROM t_wz_rk_item where by1 = ? and mat_code = ?" ;
List<Map<String, Object>> result= systemService.findForJdbc(tsql, poitemid,matcode);
if(result.size() > 0) {
try{
for(int i = 0; i < result.size(); i++){
yssl = result.get(i).get("sumqty").toString();
}
}catch (Exception e){
}
}
Double yssld = 0.00;
Double bcsld = 0.00;
tsql = "SELECT sum(mat_qty) as sumqty FROM t_wz_po_item where id = ? and mat_code = ?";
result= systemService.findForJdbc(tsql, poitemid,matcode);
if(result.size() > 0) {
try{
for(int i = 0; i < result.size(); i++){
ddsl = result.get(i).get("sumqty").toString();
}
}catch (Exception e){
}
}
Double ddsld = 0.00;
try{
yssld = Double.parseDouble(yssl);
bcsld = Double.parseDouble(bcsl);
ddsld = Double.parseDouble(ddsl);;
}catch (Exception e){
};
if(ddsld<(yssld+bcsld)){
res = "收货数量超过订单数量";
}
return res;
}
}

View File

@ -1,84 +1,59 @@
package com.zzjee.wz.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.wz.entity.TWzLocationEntity;
import com.zzjee.wz.service.TWzLocationServiceI;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.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.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.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.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.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 java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:41:04
* @version V1.0
* @version V1.0
*
*/
@Api(value="TWzLocation",description="库存地点",tags="tWzLocationController")
@ -96,12 +71,12 @@ public class TWzLocationController extends BaseController {
private SystemService systemService;
@Autowired
private Validator validator;
/**
*
*
*
* @return
*/
@RequestMapping(params = "list")
@ -111,7 +86,7 @@ public class TWzLocationController extends BaseController {
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
@ -132,10 +107,10 @@ public class TWzLocationController extends BaseController {
this.tWzLocationService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -156,21 +131,21 @@ public class TWzLocationController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
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,
TWzLocationEntity tWzLocation = systemService.getEntity(TWzLocationEntity.class,
Integer.parseInt(id)
);
tWzLocationService.delete(tWzLocation);
@ -188,7 +163,7 @@ public class TWzLocationController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ -208,10 +183,10 @@ public class TWzLocationController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ -233,11 +208,11 @@ public class TWzLocationController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -250,7 +225,7 @@ public class TWzLocationController extends BaseController {
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -261,10 +236,10 @@ public class TWzLocationController extends BaseController {
}
return new ModelAndView("com/zzjee/wz/tWzLocation-update");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "upload")
@ -272,49 +247,49 @@ public class TWzLocationController extends BaseController {
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) {
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.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) {
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.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()) {
@ -342,7 +317,7 @@ public class TWzLocationController extends BaseController {
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="仓库列表信息",produces="application/json",httpMethod="GET")
@ -350,7 +325,7 @@ public class TWzLocationController extends BaseController {
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")

View File

@ -1,85 +1,61 @@
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 java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.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.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.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.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.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 java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.GsonUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:03
* @version V1.0
* @version V1.0
*
*/
@Api(value="TWzMaterial",description="物料",tags="tWzMaterialController")
@ -97,12 +73,13 @@ public class TWzMaterialController extends BaseController {
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
private MdGoodsServiceI mdGoodsService;
/**
*
*
*
* @return
*/
@RequestMapping(params = "list")
@ -112,7 +89,7 @@ public class TWzMaterialController extends BaseController {
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
@ -133,10 +110,10 @@ public class TWzMaterialController extends BaseController {
this.tWzMaterialService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -157,21 +134,21 @@ public class TWzMaterialController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
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,
TWzMaterialEntity tWzMaterial = systemService.getEntity(TWzMaterialEntity.class,
Integer.parseInt(id)
);
tWzMaterialService.delete(tWzMaterial);
@ -189,7 +166,7 @@ public class TWzMaterialController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ -200,6 +177,31 @@ public class TWzMaterialController extends BaseController {
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();
@ -209,10 +211,10 @@ public class TWzMaterialController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ -234,11 +236,11 @@ public class TWzMaterialController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -251,7 +253,7 @@ public class TWzMaterialController extends BaseController {
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -262,10 +264,10 @@ public class TWzMaterialController extends BaseController {
}
return new ModelAndView("com/zzjee/wz/tWzMaterial-update");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "upload")
@ -273,49 +275,49 @@ public class TWzMaterialController extends BaseController {
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) {
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.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) {
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.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()) {
@ -350,7 +352,7 @@ public class TWzMaterialController extends BaseController {
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="物料列表信息",produces="application/json",httpMethod="GET")
@ -358,7 +360,7 @@ public class TWzMaterialController extends BaseController {
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")

View File

@ -1,86 +1,60 @@
package com.zzjee.wz.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.wz.entity.TWzSpConfEntity;
import com.zzjee.wz.service.TWzSpConfServiceI;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.web.system.pojo.base.TSUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.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.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import org.jeecgframework.core.util.ExceptionUtil;
import org.jeecgframework.core.util.MyBeanUtils;
import java.io.OutputStream;
import org.jeecgframework.core.util.BrowserUtils;
import org.jeecgframework.poi.excel.ExcelExportUtil;
import org.jeecgframework.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.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.jeecgframework.core.util.ResourceUtil;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
import org.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 java.util.Map;
import java.util.HashMap;
import org.jeecgframework.core.util.ExceptionUtil;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.GsonUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @Title: Controller
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:51
* @version V1.0
* @version V1.0
*
*/
@Api(value="TWzSpConf",description="审批配置",tags="tWzSpConfController")
@ -98,12 +72,12 @@ public class TWzSpConfController extends BaseController {
private SystemService systemService;
@Autowired
private Validator validator;
/**
*
*
*
* @return
*/
@RequestMapping(params = "list")
@ -113,7 +87,7 @@ public class TWzSpConfController extends BaseController {
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
@ -134,10 +108,10 @@ public class TWzSpConfController extends BaseController {
this.tWzSpConfService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -158,21 +132,21 @@ public class TWzSpConfController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
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,
TWzSpConfEntity tWzSpConf = systemService.getEntity(TWzSpConfEntity.class,
Integer.parseInt(id)
);
tWzSpConfService.delete(tWzSpConf);
@ -190,7 +164,7 @@ public class TWzSpConfController extends BaseController {
/**
*
*
*
* @param ids
* @return
*/
@ -220,10 +194,10 @@ public class TWzSpConfController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @param ids
* @return
*/
@ -256,11 +230,11 @@ public class TWzSpConfController extends BaseController {
j.setMsg(message);
return j;
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -273,7 +247,7 @@ public class TWzSpConfController extends BaseController {
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -284,10 +258,10 @@ public class TWzSpConfController extends BaseController {
}
return new ModelAndView("com/zzjee/wz/tWzSpConf-update");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "upload")
@ -295,49 +269,49 @@ public class TWzSpConfController extends BaseController {
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) {
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.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) {
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.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()) {
@ -365,7 +339,7 @@ public class TWzSpConfController extends BaseController {
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="审批配置列表信息",produces="application/json",httpMethod="GET")
@ -373,7 +347,7 @@ public class TWzSpConfController extends BaseController {
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")

View File

@ -1,29 +1,16 @@
package com.zzjee.wz.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:41:04
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -53,7 +40,7 @@ public class TWzLocationEntity implements java.io.Serializable {
/**仓库*/
@Excel(name="仓库",width=15)
private String matLocation;
/**
*: java.lang.Integer
*@return: java.lang.Integer

View File

@ -1,29 +1,17 @@
package com.zzjee.wz.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
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
* @version V1.0
*
*/
@Entity
@ -84,7 +72,11 @@ public class TWzMaterialEntity implements java.io.Serializable {
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
@ -478,4 +470,40 @@ public class TWzMaterialEntity implements java.io.Serializable {
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,29 +1,16 @@
package com.zzjee.wz.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:40:51
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -62,7 +49,7 @@ public class TWzSpConfEntity implements java.io.Serializable {
/**备注*/
@Excel(name="备注",width=15)
private String spRemark;
/**
*: java.lang.Integer
*@return: java.lang.Integer

View File

@ -4,12 +4,12 @@ import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzLocationServiceI extends CommonService{
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

@ -4,12 +4,12 @@ import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzMaterialServiceI extends CommonService{
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

@ -4,12 +4,12 @@ import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzSpConfServiceI extends CommonService{
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

@ -20,26 +20,26 @@ import java.util.UUID;
@Transactional
public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMaterialServiceI {
public void delete(TWzMaterialEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(TWzMaterialEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(TWzMaterialEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
@ -48,7 +48,7 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
private void doAddBus(TWzMaterialEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
@ -60,7 +60,7 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
private void doUpdateBus(TWzMaterialEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
@ -72,11 +72,11 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
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());
@ -104,14 +104,14 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
map.put("by5", t.getBy5());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,TWzMaterialEntity t){
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()));
@ -138,7 +138,7 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
@ -159,7 +159,7 @@ public class TWzMaterialServiceImpl extends CommonServiceImpl implements TWzMate
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}
}
}

View File

@ -1,91 +1,59 @@
package com.zzjee.wzpo.controller;
import com.zzjee.wzpo.entity.PowzPage;
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 java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import org.jeecgframework.core.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.common.TreeChildCount;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.constant.Globals;
import org.jeecgframework.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
import java.io.OutputStream;
import org.jeecgframework.poi.excel.ExcelExportUtil;
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.TemplateExportParams;
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.vo.TemplateExcelConstants;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.io.IOException;
import org.springframework.web.bind.annotation.RequestMethod;
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 java.util.Map;
import java.util.HashMap;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.GsonUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.io.IOException;
import java.util.*;
/**
* @Title: Controller
/**
* @Title: Controller
* @Description: v_wz_po_wq
* @author onlineGenerator
* @date 2018-05-21 15:57:04
* @version V1.0
* @version V1.0
*
*/
@Api(value="VWzPoWq",description="v_wz_po_wq",tags="vWzPoWqController")
@ -109,7 +77,7 @@ public class VWzPoWqController extends BaseController {
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "list")
@ -119,14 +87,14 @@ public class VWzPoWqController extends BaseController {
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
*/
@RequestMapping(params = "datagrid")
public void datagrid(VWzPoWqEntity vWzPoWq,HttpServletRequest request, HttpServletResponse response, DataGrid 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());
@ -157,15 +125,33 @@ public class VWzPoWqController extends BaseController {
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("批量入库");
tWzRkHead.setVendorCode("批量入库");
tWzRkHead.setVendorName("批量入库");
tWzRkHead.setRkRemark("采购订单入库:"+t.getPoRemark());
tWzRkHead.setVendorCode(t.getVendorCode());
tWzRkHead.setVendorName(t.getVendorName());
} catch (Exception e) {
e.printStackTrace();
}
@ -179,6 +165,14 @@ public class VWzPoWqController extends BaseController {
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) {
@ -201,7 +195,7 @@ public class VWzPoWqController extends BaseController {
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -222,21 +216,21 @@ public class VWzPoWqController extends BaseController {
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
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,
VWzPoWqEntity vWzPoWq = systemService.getEntity(VWzPoWqEntity.class,
id
);
vWzPoWqService.delete(vWzPoWq);
@ -254,7 +248,7 @@ public class VWzPoWqController extends BaseController {
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ -274,10 +268,10 @@ public class VWzPoWqController extends BaseController {
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ -299,11 +293,11 @@ public class VWzPoWqController extends BaseController {
j.setMsg(message);
return j;
}
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -316,7 +310,7 @@ public class VWzPoWqController extends BaseController {
}
/**
* v_wz_po_wq
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -327,10 +321,10 @@ public class VWzPoWqController extends BaseController {
}
return new ModelAndView("com/zzjee/wzpo/vWzPoWq-update");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "upload")
@ -338,49 +332,49 @@ public class VWzPoWqController extends BaseController {
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) {
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.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) {
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.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()) {
@ -390,7 +384,7 @@ public class VWzPoWqController extends BaseController {
params.setHeadRows(1);
params.setNeedSave(true);
try {
List<VWzPoWqEntity> listVWzPoWqEntitys = ExcelImportUtil.importExcel(file.getInputStream(),VWzPoWqEntity.class,params);
List<VWzPoWqEntity> listVWzPoWqEntitys = ExcelImportUtil.importExcel(file.getInputStream(), VWzPoWqEntity.class,params);
for (VWzPoWqEntity vWzPoWq : listVWzPoWqEntitys) {
vWzPoWqService.save(vWzPoWq);
}
@ -408,7 +402,7 @@ public class VWzPoWqController extends BaseController {
}
return j;
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="v_wz_po_wq列表信息",produces="application/json",httpMethod="GET")
@ -416,7 +410,7 @@ public class VWzPoWqController extends BaseController {
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")

View File

@ -1,29 +1,17 @@
package com.zzjee.wzpo.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
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
* @version V1.0
*
*/
@Entity
@ -32,6 +20,18 @@ import org.jeecgframework.poi.excel.annotation.Excel;
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;
@ -228,4 +228,81 @@ public class VWzPoWqEntity implements java.io.Serializable {
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

@ -4,12 +4,12 @@ import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface VWzPoWqServiceI extends CommonService{
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,42 +1,44 @@
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 com.zzjee.wzpo.entity.VWzPoWqEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.io.Serializable;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter;
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 {
public void delete(VWzPoWqEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(VWzPoWqEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(VWzPoWqEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
@ -45,7 +47,7 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
private void doAddBus(VWzPoWqEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
@ -57,7 +59,7 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
private void doUpdateBus(VWzPoWqEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
@ -69,11 +71,11 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
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());
@ -87,7 +89,7 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
map.put("mat_qty_wq", t.getMatQtyWq());
return map;
}
/**
* sql
* @param sql
@ -107,7 +109,7 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
@ -128,7 +130,7 @@ public class VWzPoWqServiceImpl extends CommonServiceImpl implements VWzPoWqServ
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}
}
}

View File

@ -0,0 +1,385 @@
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

@ -0,0 +1,474 @@
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

@ -0,0 +1,15 @@
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

@ -0,0 +1,166 @@
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 {
public void delete(TWzRepairEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(TWzRepairEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
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 id
* @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

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

View File

@ -1,86 +1,80 @@
package com.zzjee.wzyw.controller;
import com.alibaba.fastjson.JSONArray;
import com.zzjee.md.entity.MvGoodsEntity;
import com.zzjee.util.ReportUtils;
import com.zzjee.wzyw.entity.*;
import com.zzjee.wzyw.service.TWzCkHeadServiceI;
import com.zzjee.wm.entity.WmOmNoticeHEntity;
import com.zzjee.wm.entity.WmOmNoticeIEntity;
import com.zzjee.wm.service.WmOmNoticeHServiceI;
import com.zzjee.wmutil.wmUtil;
import com.zzjee.wz.entity.TWzMaterialEntity;
import com.zzjee.wzrepair.entity.TWzRepairEntity;
import com.zzjee.wzrepair.service.TWzRepairServiceI;
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
import com.zzjee.wzyw.entity.TWzCkItemDto;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import com.zzjee.wzyw.page.TWzCkHeadPage;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zzjee.wzyw.service.TWzCkHeadServiceI;
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.*;
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.common.dao.jdbc.JdbcDao;
import org.jeecgframework.core.util.*;
import org.jeecgframework.web.system.pojo.base.TSUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
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.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
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.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 java.io.IOException;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.GsonUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
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;
/**
/**
* @Title: Controller
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:29
* @version V1.0
* @version V1.0
*
*/
@Api(value="TWzCkHead",description="物料出库",tags="tWzCkHeadController")
@ -100,11 +94,14 @@ public class TWzCkHeadController extends BaseController {
private Validator validator;
@Autowired
JdbcDao jdbcDao;
JdbcDao jdbcDao;
@Autowired
private WmOmNoticeHServiceI wmOmNoticeHService;
@Autowired
private TWzRepairServiceI tWzRepairService;
/**
*
*
*
* @return
*/
@RequestMapping(params = "list")
@ -117,7 +114,7 @@ public class TWzCkHeadController extends BaseController {
}
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
@ -161,7 +158,10 @@ public class TWzCkHeadController extends BaseController {
if(StringUtil.isNotEmpty(query_docDate_end)){
cq.le("docDate", Integer.parseInt(query_docDate_end));
}
cq.eq("bpmStatus","2");
String[] ina = new String[2];
ina[0]="2";
ina[1]="3";
cq.in("bpmStatus",ina);
// cq.eq("updateBy",ResourceUtil.getSessionUser().getUserName());
}catch (Exception e) {
throw new BusinessException(e.getMessage());
@ -175,7 +175,7 @@ public class TWzCkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -198,12 +198,12 @@ public class TWzCkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
AjaxJson j = new AjaxJson();
String message = "物料出库删除成功";
try{
@ -211,6 +211,8 @@ public class TWzCkHeadController extends BaseController {
TWzCkHeadEntity tWzCkHead = systemService.getEntity(TWzCkHeadEntity.class,
Integer.parseInt(id)
);
// tWzCkHead.setBpmStatus("已删除");
// systemService.updateEntitie(tWzCkHead);
tWzCkHeadService.delMain(tWzCkHead);
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
}
@ -231,7 +233,7 @@ public class TWzCkHeadController extends BaseController {
*/
@RequestMapping(params = "doAddcheck")
@ResponseBody
public AjaxJson doAddcheck(String mat_code ,String mat_location,String mat_qty, HttpServletRequest request) {
public AjaxJson doAddcheck(String mat_code , String mat_location, String mat_qty, HttpServletRequest request) {
AjaxJson j = new AjaxJson();
String message = "库存充足";
try{
@ -264,12 +266,12 @@ public class TWzCkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzCkHeadEntity tWzCkHead,TWzCkHeadPage tWzCkHeadPage, HttpServletRequest request) {
public AjaxJson doAdd(TWzCkHeadEntity tWzCkHead, TWzCkHeadPage tWzCkHeadPage, HttpServletRequest request) {
List<TWzCkItemEntity> tWzCkItemList = tWzCkHeadPage.getTWzCkItemList();
AjaxJson j = new AjaxJson();
String message = "添加成功";
@ -281,10 +283,10 @@ public class TWzCkHeadController extends BaseController {
}
try{
String[] strs = tWzCkHead.getCkUsername() .split(",");
// String[] strs = tWzCkHead.getCkUsername() .split(",");
//第一个分号之前的字符串自然就是数组里的第一个
String userid = strs[0];
TSUser user = systemService.get(TSUser.class,userid);
String username = tWzCkHead.getCkUsername();
TSUser user = systemService.findUniqueByProperty(TSUser.class,"userName",username);
tWzCkHead.setCkName(user.getRealName());
tWzCkHead.setCkUsername(user.getUserName());
tWzCkHead.setOrgCode(user.getUserOrgList().get(0).getTsDepart().getOrgCode());
@ -319,7 +321,7 @@ public class TWzCkHeadController extends BaseController {
String hql0 = "from TWzCkItemEntity where 1 = 1 AND wZCK_HID = ? ";
String sql = "select c.mat_code,c.mat_name,c.mat_location,h.ck_name,c.mat_qty,c.mat_unit,c.mat_price,(c.mat_qty*c.mat_price) as mat_amount,c.create_date\n" +
" from t_wz_ck_item c LEFT JOIN t_wz_ck_head h ON c.wzck_hid = h.id where c.wzck_hid = " + id;
List<TWzCkItemDto> tWzCkItemOldList = jdbcDao.find(sql,TWzCkItemDto.class,null);
List<TWzCkItemDto> tWzCkItemOldList = jdbcDao.find(sql, TWzCkItemDto.class,null);
try {
StringBuffer sber = new StringBuffer();
@ -337,14 +339,14 @@ public class TWzCkHeadController extends BaseController {
sheet.setMargin(HSSFSheet.LeftMargin,0.8);// 页边距(左)
sheet.setMargin(HSSFSheet.RightMargin,0.0);// 页边距(右
sheet.setColumnWidth(0, 5 * 256);
sheet.setColumnWidth(1, 8 * 256);
sheet.setColumnWidth(2, 8 * 200);
sheet.setColumnWidth(1, 10 * 256);
sheet.setColumnWidth(2, 15 * 200);
sheet.setColumnWidth(3, 10 * 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, 5 * 256);
sheet.setColumnWidth(7, 5 * 256);
sheet.setColumnWidth(8, 10 * 256);
//{ "序号", "物料编码", "物料名称", "仓库", "领用人", "数量", "单位", "单价","金额" }
// sheet.setColumnWidth(7, 8 * 256);
// sheet.setColumnWidth(8, 8 * 256);
@ -420,19 +422,19 @@ public class TWzCkHeadController extends BaseController {
Row rowHead1 = sheet.createRow((short) 2); // 头部第一行
rowHead1.setHeight((short) 500);
Cell cellHead11 = rowHead1.createCell(0);
cellHead11.setCellValue("出库单号:" + id);
cellHead11.setCellValue("出库单号:" + id+" 类型:" + tWzCkHead.getBy2());
cellHead11.setCellStyle(cs2);
Cell cellHead12 = rowHead1.createCell(4);
Cell cellHead12 = rowHead1.createCell(6);
cellHead12.setCellValue("出库日期:" + DateUtils.date2Str(tWzCkHead.getCreateDate(),DateUtils.date_sdf));
cellHead12.setCellValue("出库日期:" + DateUtils.date2Str(tWzCkHead.getCreateDate(), DateUtils.date_sdf));
cellHead12.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, 3);// 第三行供应商
CellRangeAddress c12 = new CellRangeAddress(2, 2, 4, 8);// 第三行单据日期
CellRangeAddress c11 = new CellRangeAddress(2, 2, 0, 5);// 第三行供应商
CellRangeAddress c12 = new CellRangeAddress(2, 2, 6, 8);// 第三行单据日期
sheet.addMergedRegion(c);
sheet.addMergedRegion(c0);
@ -446,7 +448,7 @@ public class TWzCkHeadController extends BaseController {
"金额" };
Double totalAmount = 0d;
Integer totalNumber = 0;
Double totalNumber = 0d;
for (int i = 0; i < columnNames.length; i++) {
Cell cell = rowColumnName.createCell(i);
@ -497,9 +499,9 @@ public class TWzCkHeadController extends BaseController {
Cell cell6 = rowColumnValue.createCell(5);
cell6.setCellValue(entity.getMatQty());
cell6.setCellValue(StringUtil.moneyToString(entity.getMatQty(),"#.0000"));
cell6.setCellStyle(cs3);
totalNumber = totalNumber + Integer.parseInt(entity.getMatQty());
totalNumber = totalNumber + Double.parseDouble(entity.getMatQty());
}catch (Exception e){
}
@ -512,14 +514,14 @@ public class TWzCkHeadController extends BaseController {
}
try {
Cell cell8 = rowColumnValue.createCell(7);
cell8.setCellValue(entity.getMatPrice());
cell8.setCellValue(StringUtil.moneyToString(entity.getMatPrice(),"#.00"));
cell8.setCellStyle(cs3);
}catch (Exception e){
}
try {
Cell cell9 = rowColumnValue.createCell(8);
cell9.setCellValue(entity.getMatAmount());
cell9.setCellValue(StringUtil.moneyToString(entity.getMatAmount(),"#.00"));
cell9.setCellStyle(cs3);
totalAmount = totalAmount + Double.parseDouble(entity.getMatAmount());
}catch (Exception e){
@ -534,7 +536,7 @@ public class TWzCkHeadController extends BaseController {
cellrow.setCellValue("合计");
cellrow.setCellStyle(cs4);
Cell cellTotatl2 = rowColumnInfo.createCell(5);
cellTotatl2.setCellValue(totalNumber);
cellTotatl2.setCellValue(StringUtil.moneyToString(totalNumber,"#.0000"));
cellTotatl2.setCellStyle(cs3);
Cell cellTotatl3 = rowColumnInfo.createCell(6);
cellTotatl3.setCellValue("");
@ -543,7 +545,7 @@ public class TWzCkHeadController extends BaseController {
cellTotatl4.setCellValue("");
cellTotatl4.setCellStyle(cs3);
Cell cellTotatl5 = rowColumnInfo.createCell(8);
cellTotatl5.setCellValue(totalAmount);
cellTotatl5.setCellValue(StringUtil.moneyToString(totalAmount,"#.00"));
cellTotatl5.setCellStyle(cs3);
//合并单元格
CellRangeAddress cellTotal = new CellRangeAddress(1 + cellsNum, 1 + cellsNum, 0, 4);
@ -553,7 +555,7 @@ public class TWzCkHeadController extends BaseController {
//底部合计金额大写转为汉字
Row rowColumnInfo2 = sheet.createRow((short) 2 + cellsNum); // 列名
Cell cellrow2 = rowColumnInfo2.createCell(0);
cellrow2.setCellValue("合计金额大写:" + ReportUtils.number2CNMontrayUnit(new BigDecimal(totalAmount)));
cellrow2.setCellValue("合计金额大写:" + ReportUtils.number2CNMontrayUnit(new BigDecimal(StringUtil.moneyToString(totalAmount,"#.00"))));
cellrow2.setCellStyle(cs4);
//合并单元格
CellRangeAddress cellAmount = new CellRangeAddress(2 + cellsNum, 2 + cellsNum, 0, 8);
@ -601,13 +603,91 @@ public class TWzCkHeadController extends BaseController {
String message = "审批成功";
try{
TWzCkHeadEntity tWzCkHead = systemService.get(TWzCkHeadEntity.class,Integer.parseInt(id));
tWzCkHead.setBpmStatus("1");String hql0 = "from TWzCkItemEntity where 1 = 1 AND wzck_hid = ? ";
tWzCkHead.setBpmStatus("1");
String hql0 = "from TWzCkItemEntity where 1 = 1 AND wzck_hid = ? ";
List<TWzCkItemEntity> tWzCkItemList = systemService.findHql(hql0,id);
for (TWzCkItemEntity tWzCkItemEntity : tWzCkItemList) {
tWzCkItemEntity.setBpmStatus("1");
systemService.saveOrUpdate(tWzCkItemEntity);
TWzRepairEntity tWzRepairEntity = new TWzRepairEntity();
tWzRepairEntity.setCkId(tWzCkHead.getId().toString());
tWzRepairEntity.setCkItmeId(tWzCkItemEntity.getId());
tWzRepairEntity.setMatCode(tWzCkItemEntity.getMatCode());
tWzRepairEntity.setMatName(tWzCkItemEntity.getMatName());
tWzRepairEntity.setMatLocation(tWzCkItemEntity.getMatLocation());
tWzRepairEntity.setMatQty(tWzCkItemEntity.getMatQty());
TWzMaterialEntity wz = systemService.findUniqueByProperty(TWzMaterialEntity.class, "matCode", tWzCkItemEntity.getMatCode());
tWzRepairEntity.setMatGuige(wz.getMatGuige());
tWzRepairService.save(tWzRepairEntity);
}
systemService.saveOrUpdate(tWzCkHead);
String cuscosde = "";
String ckid = tWzCkHead.getId().toString();
List<WmOmNoticeHEntity> wmomh = systemService.findByProperty(WmOmNoticeHEntity.class, "imCusCode", ckid);
if(wmomh!=null&&wmomh.size()>0){
message="出库通知已生成";
j.setMsg(message);
return j;
}
List<WmOmNoticeIEntity> wmomNoticeIListnew = new ArrayList<WmOmNoticeIEntity>();
for (TWzCkItemEntity page : tWzCkItemList) {
WmOmNoticeIEntity wmi = new WmOmNoticeIEntity();
wmi.setGoodsId(page.getMatCode());
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(
MvGoodsEntity.class, "goodsCode", wmi.getGoodsId());
if (mvgoods != null) {
wmi.setGoodsName(mvgoods.getGoodsName());
wmi.setGoodsUnit(mvgoods.getShlDanWei());
}
try{
wmi.setGoodsQua(page.getMatQty());
String[] args=page.getMatQty().split("\\.");
wmi.setGoodsQua(args[0]);
}catch (Exception e){
}
// wmi.setGoodsPrdData(billResult.getData().get(s).getDetail().get(k).getPdProdmadedate2User());
wmi.setOtherId(page.getId());
// wmi.setBinId(page.getBinId());
// wmi.setBinOm(page.getBinOm());
if(StringUtil.isNotEmpty(page.getMatBatch())){
try{
wmi.setGoodsProData(DateUtils.str2Date(page.getMatBatch(), DateUtils.date_sdf));
}catch (Exception e){
}
}
wmomNoticeIListnew.add(wmi);
}
WmOmNoticeHEntity wmOmNoticeH = new WmOmNoticeHEntity();
// wmOmNoticeH.setReMember(pageheader.getReMember());
// wmOmNoticeH.setReCarno(pageheader.getReCarno());
// wmOmNoticeH.setDelvMember(pageheader.getDelvMember());
// wmOmNoticeH.setDelvMobile(pageheader.getDelvMobile());
// wmOmNoticeH.setDelvData(DateUtils.date2Str()tWzCkHead.getDocDate());
wmOmNoticeH.setOrderTypeCode("11");
wmOmNoticeH.setCusCode(cuscosde);
String noticeid = wmUtil.getNextomNoticeId(wmOmNoticeH.getOrderTypeCode());
wmOmNoticeH.setOmNoticeId(noticeid);
wmOmNoticeH.setOmBeizhu(tWzCkHead.getCkRemark());
wmOmNoticeH.setImCusCode(ckid);
wmOmNoticeHService.addMain(wmOmNoticeH, wmomNoticeIListnew);
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
}catch(Exception e){
e.printStackTrace();
@ -622,12 +702,12 @@ public class TWzCkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzCkHeadEntity tWzCkHead,TWzCkHeadPage tWzCkHeadPage, HttpServletRequest request) {
public AjaxJson doUpdate(TWzCkHeadEntity tWzCkHead, TWzCkHeadPage tWzCkHeadPage, HttpServletRequest request) {
List<TWzCkItemEntity> tWzCkItemList = tWzCkHeadPage.getTWzCkItemList();
AjaxJson j = new AjaxJson();
String message = "更新成功";
@ -658,7 +738,7 @@ public class TWzCkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -667,12 +747,16 @@ public class TWzCkHeadController extends BaseController {
tWzCkHead = tWzCkHeadService.getEntity(TWzCkHeadEntity.class, tWzCkHead.getId());
req.setAttribute("tWzCkHeadPage", tWzCkHead);
}
req.setAttribute("username", ResourceUtil.getSessionUser().getUserName());
req.setAttribute("usernametext", ResourceUtil.getSessionUser().getRealName());
return new ModelAndView("com/zzjee/wzyw/tWzCkHead-add");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -683,16 +767,16 @@ public class TWzCkHeadController extends BaseController {
}
return new ModelAndView("com/zzjee/wzyw/tWzCkHead-update");
}
/**
* []
*
*
* @return
*/
@RequestMapping(params = "tWzCkItemList")
public ModelAndView tWzCkItemList(TWzCkHeadEntity tWzCkHead, HttpServletRequest req) {
//===================================================================================
//获取参数
Object id0 = tWzCkHead.getId();
@ -738,7 +822,7 @@ public class TWzCkHeadController extends BaseController {
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzCkHeadEntity tWzCkHead,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid,ModelMap map) {
public String exportXls(TWzCkHeadEntity tWzCkHead, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid, ModelMap map) {
CriteriaQuery cq = new CriteriaQuery(TWzCkHeadEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tWzCkHead);
@ -767,7 +851,7 @@ public class TWzCkHeadController extends BaseController {
}
map.put(NormalExcelConstants.FILE_NAME,"物料出库");
map.put(NormalExcelConstants.CLASS,TWzCkHeadPage.class);
map.put(NormalExcelConstants.PARAMS,new ExportParams("物料出库列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
map.put(NormalExcelConstants.PARAMS,new ExportParams("物料出库列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST,pageList);
return NormalExcelConstants.JEECG_EXCEL_VIEW;
@ -836,7 +920,7 @@ public class TWzCkHeadController extends BaseController {
return new ModelAndView("common/upload/pub_excel_upload");
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="物料出库列表信息",produces="application/json",httpMethod="GET")
@ -860,7 +944,7 @@ public class TWzCkHeadController extends BaseController {
}
return Result.success(pageList);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取物料出库信息",notes="根据ID获取物料出库信息",httpMethod="GET",produces="application/json")
@ -881,7 +965,7 @@ public class TWzCkHeadController extends BaseController {
}
return Result.success(page);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建物料出库")
@ -894,7 +978,7 @@ public class TWzCkHeadController extends BaseController {
//保存
List<TWzCkItemEntity> tWzCkItemList = tWzCkHeadPage.getTWzCkItemList();
TWzCkHeadEntity tWzCkHead = new TWzCkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzCkHeadPage,tWzCkHead);
@ -906,7 +990,7 @@ public class TWzCkHeadController extends BaseController {
return Result.success(tWzCkHead);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新物料出库",notes="更新物料出库")
@ -919,7 +1003,7 @@ public class TWzCkHeadController extends BaseController {
//保存
List<TWzCkItemEntity> tWzCkItemList = tWzCkHeadPage.getTWzCkItemList();
TWzCkHeadEntity tWzCkHead = new TWzCkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzCkHeadPage,tWzCkHead);
@ -932,7 +1016,7 @@ public class TWzCkHeadController extends BaseController {
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success();
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除物料出库")

View File

@ -1,20 +1,17 @@
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.*;
import com.zzjee.wzyw.service.TWzRkHeadServiceI;
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 java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.text.SimpleDateFormat;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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;
@ -22,68 +19,55 @@ 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.apache.poi.ss.util.RegionUtil;
import org.jeecgframework.core.common.dao.jdbc.JdbcDao;
import org.jeecgframework.core.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
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.tag.core.easyui.TagUtil;
import org.jeecgframework.web.system.pojo.base.TSDepart;
import org.jeecgframework.web.system.service.SystemService;
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 java.io.IOException;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.util.UriComponentsBuilder;
import org.apache.commons.lang3.StringUtils;
import org.jeecgframework.jwt.util.GsonUtil;
import org.jeecgframework.jwt.util.ResponseMessage;
import org.jeecgframework.jwt.util.Result;
import com.alibaba.fastjson.JSONArray;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.jeecgframework.core.beanvalidator.BeanValidators;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import java.net.URI;
import org.springframework.http.MediaType;
import org.springframework.web.util.UriComponentsBuilder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
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
* @version V1.0
*
*/
@Api(value="TWzRkHead",description="入库抬头",tags="tWzRkHeadController")
@ -103,11 +87,11 @@ public class TWzRkHeadController extends BaseController {
private Validator validator;
@Autowired
JdbcDao jdbcDao;
JdbcDao jdbcDao;
/**
*
*
*
* @return
*/
@RequestMapping(params = "list")
@ -117,7 +101,7 @@ public class TWzRkHeadController extends BaseController {
/**
* easyui AJAX
*
*
* @param request
* @param response
* @param dataGrid
@ -153,7 +137,7 @@ public class TWzRkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doDel")
@ -176,12 +160,12 @@ public class TWzRkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "doBatchDel")
@ResponseBody
public AjaxJson doBatchDel(String ids,HttpServletRequest request){
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
AjaxJson j = new AjaxJson();
String message = "入库抬头删除成功";
try{
@ -203,13 +187,13 @@ public class TWzRkHeadController extends BaseController {
/**
*
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doAdd")
@ResponseBody
public AjaxJson doAdd(TWzRkHeadEntity tWzRkHead,TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
public AjaxJson doAdd(TWzRkHeadEntity tWzRkHead, TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
AjaxJson j = new AjaxJson();
String message = "添加成功";
@ -243,13 +227,13 @@ public class TWzRkHeadController extends BaseController {
}
/**
*
*
*
* @param ids
* @return
*/
@RequestMapping(params = "doUpdate")
@ResponseBody
public AjaxJson doUpdate(TWzRkHeadEntity tWzRkHead,TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
public AjaxJson doUpdate(TWzRkHeadEntity tWzRkHead, TWzRkHeadPage tWzRkHeadPage, HttpServletRequest request) {
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
AjaxJson j = new AjaxJson();
String message = "更新成功";
@ -267,7 +251,7 @@ public class TWzRkHeadController extends BaseController {
/**
*
*
*
* @return
*/
@RequestMapping(params = "goAdd")
@ -278,10 +262,10 @@ public class TWzRkHeadController extends BaseController {
}
return new ModelAndView("com/zzjee/wzyw/tWzRkHead-add");
}
/**
*
*
*
* @return
*/
@RequestMapping(params = "goUpdate")
@ -292,16 +276,16 @@ public class TWzRkHeadController extends BaseController {
}
return new ModelAndView("com/zzjee/wzyw/tWzRkHead-update");
}
/**
* []
*
*
* @return
*/
@RequestMapping(params = "tWzRkItemList")
public ModelAndView tWzRkItemList(TWzRkHeadEntity tWzRkHead, HttpServletRequest req) {
//===================================================================================
//获取参数
Object id0 = tWzRkHead.getId();
@ -346,7 +330,7 @@ public class TWzRkHeadController extends BaseController {
* @param response
*/
@RequestMapping(params = "exportXls")
public String exportXls(TWzRkHeadEntity tWzRkHead,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid,ModelMap map) {
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);
@ -374,8 +358,8 @@ public class TWzRkHeadController extends BaseController {
}
}
map.put(NormalExcelConstants.FILE_NAME,"入库抬头");
map.put(NormalExcelConstants.CLASS,TWzRkHeadPage.class);
map.put(NormalExcelConstants.PARAMS,new ExportParams("入库抬头列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
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;
@ -427,7 +411,7 @@ public class TWzRkHeadController extends BaseController {
@RequestMapping(params = "exportXlsByT")
public String exportXlsByT(ModelMap map) {
map.put(NormalExcelConstants.FILE_NAME,"入库抬头");
map.put(NormalExcelConstants.CLASS,TWzRkHeadPage.class);
map.put(NormalExcelConstants.CLASS, TWzRkHeadPage.class);
map.put(NormalExcelConstants.PARAMS,new ExportParams("入库抬头列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
"导出信息"));
map.put(NormalExcelConstants.DATA_LIST,new ArrayList());
@ -444,7 +428,7 @@ public class TWzRkHeadController extends BaseController {
return new ModelAndView("common/upload/pub_excel_upload");
}
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="入库抬头列表信息",produces="application/json",httpMethod="GET")
@ -468,7 +452,7 @@ public class TWzRkHeadController extends BaseController {
}
return Result.success(pageList);
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value="根据ID获取入库抬头信息",notes="根据ID获取入库抬头信息",httpMethod="GET",produces="application/json")
@ -489,7 +473,7 @@ public class TWzRkHeadController extends BaseController {
}
return Result.success(page);
}
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="创建入库抬头")
@ -502,7 +486,7 @@ public class TWzRkHeadController extends BaseController {
//保存
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
TWzRkHeadEntity tWzRkHead = new TWzRkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzRkHeadPage,tWzRkHead);
@ -514,7 +498,7 @@ public class TWzRkHeadController extends BaseController {
return Result.success(tWzRkHead);
}
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
@ApiOperation(value="更新入库抬头",notes="更新入库抬头")
@ -527,7 +511,7 @@ public class TWzRkHeadController extends BaseController {
//保存
List<TWzRkItemEntity> tWzRkItemList = tWzRkHeadPage.getTWzRkItemList();
TWzRkHeadEntity tWzRkHead = new TWzRkHeadEntity();
try{
MyBeanUtils.copyBeanNotNull2Bean(tWzRkHeadPage,tWzRkHead);
@ -540,7 +524,7 @@ public class TWzRkHeadController extends BaseController {
//按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return Result.success();
}
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value="删除入库抬头")
@ -680,11 +664,11 @@ public class TWzRkHeadController extends BaseController {
cell21.setCellStyle(cs2);
Cell cell22 = row2.createCell(3);
cell22.setCellValue("单据日期:" + DateUtils.date2Str(tWzRkHead.getDocDate(),DateUtils.date_sdf));
cell22.setCellValue("单据日期:" + DateUtils.date2Str(tWzRkHead.getDocDate(), DateUtils.date_sdf));
cell22.setCellStyle(cs2);
Cell cell23 = row2.createCell(6);
cell23.setCellValue("据编号:" + tWzRkHead.getId());
cell23.setCellValue("入库单号:" + tWzRkHead.getId());
cell23.setCellStyle(cs2);
// 合并单元格
@ -705,8 +689,8 @@ public class TWzRkHeadController extends BaseController {
rowColumnName.setHeight((short) 500);
String[] columnNames = { "序号", "编码/商品名称", "规格", "单位", "仓库","数量","单价",
"金额","备注" };
Double totalAmount = 0d;
Integer totalNumber = 0;
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]);
@ -759,16 +743,19 @@ public class TWzRkHeadController extends BaseController {
try {
Cell cell6 = rowColumnValue.createCell(5);
cell6.setCellValue(entity.getMatQty());
// cell6.setCellValue(entity.getMatQty());
cell6.setCellValue(StringUtil.moneyToString(entity.getMatQty(),"#.0000"));
cell6.setCellStyle(cs3);
totalNumber = totalNumber + Integer.parseInt(entity.getMatQty());
totalNumber = totalNumber + Double.parseDouble(entity.getMatQty());
}catch (Exception e){
}
try {
Cell cell7 = rowColumnValue.createCell(6);
cell7.setCellValue(entity.getMatPrice());
// cell7.setCellValue(entity.getMatPrice());
cell7.setCellValue(StringUtil.moneyToString(entity.getMatPrice(),"#.00"));
cell7.setCellStyle(cs3);
}catch (Exception e){
@ -776,7 +763,9 @@ public class TWzRkHeadController extends BaseController {
try {
Cell cell8 = rowColumnValue.createCell(7);
cell8.setCellValue(entity.getMatAmount());
// cell8.setCellValue(entity.getMatAmount());
cell8.setCellValue(StringUtil.moneyToString(entity.getMatAmount(),"#.00"));
cell8.setCellStyle(cs3);
totalAmount = totalAmount + Double.parseDouble(entity.getMatAmount());
}catch (Exception e){
@ -799,13 +788,13 @@ public class TWzRkHeadController extends BaseController {
cellrow.setCellValue("合计");
cellrow.setCellStyle(cs4);
Cell cellTotatl2 = rowColumnInfo.createCell(5);
cellTotatl2.setCellValue(totalNumber);
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(totalAmount);
cellTotatl4.setCellValue(StringUtil.moneyToString(totalAmount,"#.00"));
cellTotatl4.setCellStyle(cs3);
Cell cellTotatl5 = rowColumnInfo.createCell(8);
cellTotatl5.setCellValue("");
@ -818,7 +807,7 @@ public class TWzRkHeadController extends BaseController {
//底部合计金额大写转为汉字
Row rowColumnInfo2 = sheet.createRow((short) 2 + cellsNum); // 列名
Cell cellrow2 = rowColumnInfo2.createCell(0);
cellrow2.setCellValue("合计金额大写:" + ReportUtils.number2CNMontrayUnit(new BigDecimal(totalAmount)));
cellrow2.setCellValue("合计金额大写:" + ReportUtils.number2CNMontrayUnit(new BigDecimal(StringUtil.moneyToString(totalAmount,"#.00"))));
cellrow2.setCellStyle(cs4);
//合并单元格
CellRangeAddress cellAmount = new CellRangeAddress(2 + cellsNum, 2 + cellsNum, 0, 8);

View File

@ -1,28 +1,16 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:29
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -76,23 +64,26 @@ public class TWzCkHeadEntity implements java.io.Serializable {
@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;
@ -105,12 +96,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -123,12 +114,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -141,12 +132,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -159,12 +150,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -177,12 +168,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -195,12 +186,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -213,12 +204,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -231,12 +222,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -249,12 +240,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -267,12 +258,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -285,12 +276,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -303,12 +294,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -321,12 +312,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -339,12 +330,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -357,12 +348,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -375,12 +366,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -393,12 +384,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -411,12 +402,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -429,12 +420,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -447,12 +438,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -465,12 +456,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -483,12 +474,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -501,12 +492,12 @@ public class TWzCkHeadEntity implements java.io.Serializable {
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;
@ -519,5 +510,5 @@ public class TWzCkHeadEntity implements java.io.Serializable {
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,28 +1,17 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:28
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -87,7 +76,7 @@ public class TWzCkItemEntity implements java.io.Serializable {
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.String
*@return: java.lang.String
@ -95,7 +84,7 @@ public class TWzCkItemEntity implements java.io.Serializable {
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
@ -108,12 +97,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -126,12 +115,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -144,12 +133,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -162,12 +151,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -180,12 +169,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -198,12 +187,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -216,12 +205,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -234,12 +223,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -252,12 +241,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -270,12 +259,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -288,12 +277,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -306,12 +295,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -324,12 +313,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -342,12 +331,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -360,12 +349,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -378,12 +367,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -396,12 +385,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -414,12 +403,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -432,12 +421,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -450,12 +439,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -468,12 +457,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -486,12 +475,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -504,12 +493,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -522,12 +511,12 @@ public class TWzCkItemEntity implements java.io.Serializable {
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;
@ -540,5 +529,5 @@ public class TWzCkItemEntity implements java.io.Serializable {
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,28 +1,16 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-21 13:23:13
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -69,14 +57,14 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -89,12 +77,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -107,12 +95,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -125,12 +113,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -143,12 +131,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -161,12 +149,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -179,12 +167,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -197,12 +185,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -215,12 +203,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -233,12 +221,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -251,12 +239,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -269,12 +257,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -287,12 +275,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -305,12 +293,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -323,12 +311,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -341,12 +329,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -359,12 +347,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -377,12 +365,12 @@ public class TWzPoHeadEntity implements java.io.Serializable {
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;
@ -395,5 +383,5 @@ public class TWzPoHeadEntity implements java.io.Serializable {
public void setPoBy4(String poBy4){
this.poBy4 = poBy4;
}
}

View File

@ -1,28 +1,17 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-21 13:23:13
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -85,7 +74,7 @@ public class TWzPoItemEntity implements java.io.Serializable {
private String by3;
/**未清数量*/
private String matQtyWq;
/**
*: java.lang.String
*@return: java.lang.String
@ -93,7 +82,7 @@ public class TWzPoItemEntity implements java.io.Serializable {
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
@ -106,12 +95,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -124,12 +113,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -142,12 +131,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -160,12 +149,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -178,12 +167,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -196,12 +185,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -214,12 +203,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -232,12 +221,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -250,12 +239,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -268,12 +257,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -286,12 +275,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -304,12 +293,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -322,12 +311,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -340,12 +329,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -358,12 +347,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -376,12 +365,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -394,12 +383,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -412,12 +401,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -430,12 +419,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -448,12 +437,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -466,12 +455,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -484,12 +473,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -502,12 +491,12 @@ public class TWzPoItemEntity implements java.io.Serializable {
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;
@ -520,5 +509,5 @@ public class TWzPoItemEntity implements java.io.Serializable {
public void setMatQtyWq(String matQtyWq){
this.matQtyWq = matQtyWq;
}
}

View File

@ -1,28 +1,16 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -74,14 +62,14 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -94,12 +82,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -112,12 +100,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -130,12 +118,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -148,12 +136,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -166,12 +154,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -184,12 +172,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -202,12 +190,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -220,12 +208,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -238,12 +226,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -256,12 +244,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -274,12 +262,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -292,12 +280,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -310,12 +298,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -328,12 +316,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -346,12 +334,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -364,12 +352,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -382,12 +370,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -400,12 +388,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -418,12 +406,12 @@ public class TWzRkHeadEntity implements java.io.Serializable {
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;
@ -436,5 +424,5 @@ public class TWzRkHeadEntity implements java.io.Serializable {
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -1,28 +1,16 @@
package com.zzjee.wzyw.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
import javax.persistence.*;
import java.util.Date;
/**
* @Title: Entity
* @Description:
* @author onlineGenerator
* @date 2018-05-20 21:43:08
* @version V1.0
* @version V1.0
*
*/
@Entity
@ -89,14 +77,14 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -109,12 +97,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -127,12 +115,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -145,12 +133,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -163,12 +151,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -181,12 +169,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -199,12 +187,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -217,12 +205,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -235,12 +223,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -253,12 +241,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -271,12 +259,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -289,12 +277,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -307,12 +295,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -325,12 +313,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -343,12 +331,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -361,12 +349,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -379,12 +367,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -397,12 +385,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -415,12 +403,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -433,12 +421,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -451,12 +439,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -469,12 +457,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -487,12 +475,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -505,12 +493,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -523,12 +511,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -541,12 +529,12 @@ public class TWzRkItemEntity implements java.io.Serializable {
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;
@ -559,5 +547,5 @@ public class TWzRkItemEntity implements java.io.Serializable {
public void setBy6(String by6){
this.by6 = by6;
}
}

View File

@ -1,30 +1,20 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
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
* @version V1.0
*
*/
public class TWzCkHeadPage implements java.io.Serializable {
@ -85,7 +75,7 @@ public class TWzCkHeadPage implements java.io.Serializable {
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer

View File

@ -1,30 +1,20 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
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
* @version V1.0
*
*/
public class TWzPoHeadPage implements java.io.Serializable {
@ -69,7 +59,7 @@ public class TWzPoHeadPage implements java.io.Serializable {
private String poBy3;
/**备用4*/
private String poBy4;
/**
*: java.lang.Integer
*@return: java.lang.Integer

View File

@ -1,30 +1,20 @@
package com.zzjee.wzyw.page;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
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
* @version V1.0
*
*/
public class TWzRkHeadPage implements java.io.Serializable {
@ -74,7 +64,7 @@ public class TWzRkHeadPage implements java.io.Serializable {
private String by4;
/**备用5*/
private String by5;
/**
*: java.lang.Integer
*@return: java.lang.Integer

View File

@ -1,28 +1,28 @@
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;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzCkHeadServiceI extends CommonService{
public interface TWzCkHeadServiceI extends CommonService {
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 id

View File

@ -1,28 +1,28 @@
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;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzPoHeadServiceI extends CommonService{
public interface TWzPoHeadServiceI extends CommonService {
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 id

View File

@ -1,28 +1,28 @@
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;
import org.jeecgframework.core.common.service.CommonService;
import java.io.Serializable;
public interface TWzRkHeadServiceI extends CommonService{
public interface TWzRkHeadServiceI extends CommonService {
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 id

View File

@ -1,53 +1,48 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.util.wzUtil;
import com.zzjee.wzyw.service.TWzCkHeadServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
import com.zzjee.wzyw.entity.TWzCkItemEntity;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.web.system.service.SystemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
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 java.util.ArrayList;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
import java.io.Serializable;
@Service("tWzCkHeadService")
@Transactional
public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHeadServiceI {
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzCkHeadEntity)entity);
}
public void addMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList){
//保存主信息
tWzCkHead.setBpmStatus("0");
// tWzCkHead.setBpmStatus("0");
this.save(tWzCkHead);
/**保存-出库商品*/
for(TWzCkItemEntity tWzCkItem:tWzCkItemList){
//外键设置
tWzCkItem.setWzckHid(tWzCkHead.getId().toString());
tWzCkItem.setBpmStatus("0");
// tWzCkItem.setBpmStatus("0");
this.save(tWzCkItem);
}
//执行新增操作配置的sql增强
this.doAddSql(tWzCkHead);
}
public void updateMain(TWzCkHeadEntity tWzCkHead,
List<TWzCkItemEntity> tWzCkItemList) {
//保存主表信息
@ -91,7 +86,7 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
//如果数据库存在的明细,前台没有传递过来则是删除-出库商品
super.delete(oldE);
}
}
//3.持久化新增的数据-出库商品
for(TWzCkItemEntity tWzCkItem:tWzCkItemList){
@ -106,7 +101,7 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
this.doUpdateSql(tWzCkHead);
}
public void delMain(TWzCkHeadEntity tWzCkHead) {
//删除主表信息
this.delete(tWzCkHead);
@ -119,8 +114,8 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
List<TWzCkItemEntity> tWzCkItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzCkItemOldList);
}
/**
* -sql-
* @param id
@ -153,7 +148,7 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
public boolean doDelSql(TWzCkHeadEntity t){
return true;
}
/**
* sql
* @param sql
@ -187,4 +182,4 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}
}

View File

@ -1,37 +1,35 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.wzyw.service.TWzPoHeadServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
import com.zzjee.wzyw.entity.TWzPoItemEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
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 java.util.ArrayList;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
import java.io.Serializable;
@Service("tWzPoHeadService")
@Transactional
public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHeadServiceI {
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzPoHeadEntity)entity);
}
public void addMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList){
//保存主信息
this.save(tWzPoHead);
/**保存-采购订单行项目*/
for(TWzPoItemEntity tWzPoItem:tWzPoItemList){
//外键设置
@ -42,7 +40,7 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
this.doAddSql(tWzPoHead);
}
public void updateMain(TWzPoHeadEntity tWzPoHead,
List<TWzPoItemEntity> tWzPoItemList) {
//保存主表信息
@ -86,7 +84,7 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
//如果数据库存在的明细,前台没有传递过来则是删除-采购订单行项目
super.delete(oldE);
}
}
//3.持久化新增的数据-采购订单行项目
for(TWzPoItemEntity tWzPoItem:tWzPoItemList){
@ -101,7 +99,7 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
this.doUpdateSql(tWzPoHead);
}
public void delMain(TWzPoHeadEntity tWzPoHead) {
//删除主表信息
this.delete(tWzPoHead);
@ -114,8 +112,8 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
List<TWzPoItemEntity> tWzPoItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzPoItemOldList);
}
/**
* -sql-
* @param id
@ -140,7 +138,7 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
public boolean doDelSql(TWzPoHeadEntity t){
return true;
}
/**
* sql
* @param sql
@ -168,4 +166,4 @@ public class TWzPoHeadServiceImpl extends CommonServiceImpl implements TWzPoHead
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}
}

View File

@ -1,38 +1,36 @@
package com.zzjee.wzyw.service.impl;
import com.zzjee.wzyw.service.TWzRkHeadServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.wzyw.entity.TWzRkHeadEntity;
import com.zzjee.wzyw.entity.TWzRkItemEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
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 java.util.ArrayList;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.UUID;
import java.io.Serializable;
@Service("tWzRkHeadService")
@Transactional
public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHeadServiceI {
public <T> void delete(T entity) {
super.delete(entity);
//执行删除操作配置的sql增强
this.doDelSql((TWzRkHeadEntity)entity);
}
public void addMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList){
List<TWzRkItemEntity> tWzRkItemList){
//保存主信息
tWzRkHead.setBpmStatus("0");
this.save(tWzRkHead);
/**保存-入库商品*/
for(TWzRkItemEntity tWzRkItem:tWzRkItemList){
//外键设置
@ -44,9 +42,9 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
this.doAddSql(tWzRkHead);
}
public void updateMain(TWzRkHeadEntity tWzRkHead,
List<TWzRkItemEntity> tWzRkItemList) {
List<TWzRkItemEntity> tWzRkItemList) {
//保存主表信息
if(StringUtil.isNotEmpty(tWzRkHead.getId())){
try {
@ -88,7 +86,7 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
//如果数据库存在的明细,前台没有传递过来则是删除-入库商品
super.delete(oldE);
}
}
//3.持久化新增的数据-入库商品
for(TWzRkItemEntity tWzRkItem:tWzRkItemList){
@ -103,7 +101,7 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
this.doUpdateSql(tWzRkHead);
}
public void delMain(TWzRkHeadEntity tWzRkHead) {
//删除主表信息
this.delete(tWzRkHead);
@ -116,8 +114,8 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
List<TWzRkItemEntity> tWzRkItemOldList = this.findHql(hql0,id0);
this.deleteAllEntitie(tWzRkItemOldList);
}
/**
* -sql-
* @param id
@ -143,13 +141,13 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
public boolean doDelSql(TWzRkHeadEntity t){
return true;
}
/**
* sql
* @param sql
* @return
*/
public String replaceVal(String sql,TWzRkHeadEntity t){
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()));
@ -173,4 +171,4 @@ public class TWzRkHeadServiceImpl extends CommonServiceImpl implements TWzRkHead
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
}
}

View File

@ -22,7 +22,7 @@
<%--<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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>

View File

@ -12,8 +12,94 @@
<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: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<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">
物料编码:
@ -24,7 +110,18 @@
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
</tr>
<td align="right">
<label class="Validform_label">
物料条码:
</label>
</td>
<td class="value">
<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">
@ -36,8 +133,7 @@
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
单位:
@ -60,8 +156,7 @@
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">规格</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
等级:
@ -74,18 +169,17 @@
</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>
</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">
安全库存:
@ -96,21 +190,30 @@
<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="matLocation" type="list" datatype="*" dictTable="t_wz_location" dictField="mat_location" dictText="mat_location" defaultVal="${tWzMaterialPage.matLocation}" hasLabel="false" title="库" ></t:dictSelect>
<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>
<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>

View File

@ -12,8 +12,88 @@
<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: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<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">
物料编码:
@ -21,10 +101,19 @@
</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}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">物料编码</label>
</td>
</tr>
<td align="right">
<label class="Validform_label">
物料条码:
</label>
</td>
<td class="value">
<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">
@ -33,11 +122,9 @@
</td>
<td class="value">
<input id="matName" name="matName" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzMaterialPage.matName}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">物料名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
单位:
@ -45,8 +132,7 @@
</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>
@ -57,11 +143,9 @@
</td>
<td class="value">
<input id="matGuige" name="matGuige" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tWzMaterialPage.matGuige}'/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">规格</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
等级:
@ -74,18 +158,16 @@
</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}'/>
<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">
安全库存:
@ -93,23 +175,30 @@
</td>
<td class="value">
<input id="matAqkc" name="matAqkc" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" value='${tWzMaterialPage.matAqkc}'/>
<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="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>
<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>

View File

@ -19,14 +19,17 @@
<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="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="备用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="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>
@ -43,9 +46,9 @@
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openuploadwin('Excel导入', 'tWzMaterialController.do?upload', "tWzMaterialList");
@ -61,4 +64,4 @@ function ExportXlsByT() {
JeecgExcelExport("tWzMaterialController.do?exportXlsByT","tWzMaterialList");
}
</script>
</script>

View File

@ -13,7 +13,7 @@
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" queryMode="single" dictionary="bpm_status" 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>

View File

@ -5,6 +5,10 @@
<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>
@ -27,7 +31,7 @@
<%--<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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>

View File

@ -0,0 +1,332 @@
<%@ 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

@ -0,0 +1,332 @@
<%@ 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

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

@ -0,0 +1,66 @@
<%@ 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() {
openuploadwin('Excel导入', 'tWzRepairController.do?upload', "tWzRepairList");
}
//导出
function ExportXls() {
JeecgExcelExport("tWzRepairController.do?exportXls","tWzRepairList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("tWzRepairController.do?exportXlsByT","tWzRepairList");
}
</script>

View File

@ -43,32 +43,37 @@
<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">--%>
<%--<input id="orgCode" name="orgCode" 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="orgName" name="orgName" 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="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>
<label class="Validform_label" style="display: none;">手工审批</label>
</td>
<%--<td align="right">--%>
<%--<label class="Validform_label">领用人:</label>--%>
@ -78,33 +83,33 @@
<%--<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:userSelect title="用户名称" selectedNamesInputId="ckName" selectedIdsInputId="ckUsername" windowWidth="1000px" windowHeight="600px"></t:userSelect>
<%--<input id="ckName" name="ckName" 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">领用人(${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>
<label class="Validform_label" style="display: none;">单据日期</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">出库备注:</label>
</td>
<td class="value">
<td class="value" colspan="3">
<input id="ckRemark" name="ckRemark" 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>
@ -118,13 +123,13 @@
<%--<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:tab href="tWzCkHeadController.do?tWzCkItemList&id=${tWzCkHeadPage.id}" icon="icon-search" title="出库项目" id="tWzCkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
@ -139,7 +144,7 @@
<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;" onchange="checkstock('tWzCkItemList[#index#].matName')" datatype="*" ignore="ignore" />
<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">
@ -167,8 +172,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].by1" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注2</label>
<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" />
@ -179,4 +184,3 @@
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzCkHead.js"></script>

View File

@ -40,7 +40,7 @@
</script>
</head>
<body style="overflow-x: hidden;">
<c:if test="${tWzCkHeadPage.bpmStatus eq 0}">
<%--<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">
@ -105,7 +105,6 @@
<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>
<label class="Validform_label" style="display: none;">手工审批</label>
</td>
<%--<td align="right">--%>
<%--<label class="Validform_label">附件:</label>--%>
@ -115,14 +114,37 @@
<%--<span class="Validform_checktip"></span>--%>
<%--<label class="Validform_label" style="display: none;">附件</label>--%>
<%--</td>--%>
</tr>
<td align="right">
<label class="Validform_label">出库类别:</label>
</td>
<td class="value">
<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:tab href="tWzCkHeadController.do?tWzCkItemList&id=${tWzCkHeadPage.id}" icon="icon-search" title="出库项目" id="tWzCkItem"></t:tab>
</t:tabs>
</div>
</t:formvalid>
@ -167,8 +189,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[#index#].by1" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
<label class="Validform_label" style="display: none;">备注2</label>
<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" />
@ -177,141 +199,141 @@
</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>
<%--<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}'/>--%>
<%--</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>--%>
</tr>
<%--<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;">
<%-- 增加一个div用于调节页面大小否则默认太小 --%>
<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 }" />
<%--</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>
<%--<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

@ -15,7 +15,7 @@
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" queryMode="single" dictionary="bpm_status" 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>
@ -33,15 +33,15 @@
<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: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-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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>

View File

@ -13,7 +13,7 @@
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="流程状态" field="bpmStatus" queryMode="single" dictionary="bpm_status" 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>
@ -34,10 +34,10 @@
<%--<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-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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>

View File

@ -1,23 +1,23 @@
<%@ 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(){
$('#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');
});
$('#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){
@ -25,9 +25,53 @@
$(".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>
<a id="addTWzCkItemBtn" href="#">添加</a> <a id="delTWzCkItemBtn" href="#">删除</a>
</div>
<table border="0" cellpadding="2" cellspacing="0" id="tWzCkItem_table">
<tr bgcolor="#E6E6E6">
@ -58,7 +102,7 @@
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注2
总价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
@ -80,14 +124,14 @@
<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].matAmount" type="hidden"/>--%>
<input name="tWzCkItemList[0].by1" type="hidden"/>
<input name="tWzCkItemList[0].by2" 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')"/>
<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">
@ -95,7 +139,7 @@
<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;" onchange="checkstock('tWzCkItemList[0].matQty')" datatype="*" ignore="checked" >
<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">
@ -111,7 +155,7 @@
<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" >
<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">
@ -119,8 +163,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].by1" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注2</label>
<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" >
@ -144,14 +188,14 @@
<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 }].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 }" />
<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">
@ -159,7 +203,7 @@
<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;" datatype="*" ignore="checked" value="${poVal.matQty }"/>
<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">
@ -175,7 +219,7 @@
<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 }"/>
<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">
@ -183,8 +227,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].by1" maxlength="232" type="text" class="inputxt" style="width:120px;" ignore="ignore" value="${poVal.by1 }"/>
<label class="Validform_label" style="display: none;">备注2</label>
<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 }"/>
@ -192,6 +236,6 @@
</td>
</tr>
</c:forEach>
</c:if>
</c:if>
</tbody>
</table>

View File

@ -58,7 +58,7 @@
备注
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注2
总价
</td>
<td align="left" bgcolor="#EEEEEE" style="width: 126px;">
备注3
@ -80,8 +80,8 @@
<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].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"/>
@ -119,8 +119,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[0].by1" maxlength="232" type="text" class="inputxt" readonly="readonly" style="width:120px;" ignore="ignore" >
<label class="Validform_label" style="display: none;">备注2</label>
<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" >
@ -144,8 +144,8 @@
<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 }].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 }"/>
@ -183,8 +183,8 @@
<label class="Validform_label" style="display: none;">备注</label>
</td>
<td align="left">
<input name="tWzCkItemList[${stuts.index }].by1" maxlength="232" type="text" class="inputxt" style="width:120px;" readonly="readonly" ignore="ignore" value="${poVal.by1 }"/>
<label class="Validform_label" style="display: none;">备注2</label>
<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 }"/>

View File

@ -48,7 +48,7 @@
<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')"/>
<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>
@ -79,7 +79,16 @@
<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用于调节页面大小否则默认太小 --%>
@ -132,4 +141,3 @@
</table>
</body>
<script src = "webpage/com/zzjee/wzyw/tWzPoHead.js"></script>

View File

@ -48,7 +48,7 @@
<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}'/>
<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>
@ -79,7 +79,16 @@
<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用于调节页面大小否则默认太小 --%>
@ -97,8 +106,8 @@
<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">

View File

@ -14,25 +14,26 @@
<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" query="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="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="备用1" field="poBy1" hidden="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" 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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>
@ -75,4 +76,4 @@ function ExportXls() {
function ExportXlsByT() {
JeecgExcelExport("tWzPoHeadController.do?exportXlsByT","tWzPoHeadList");
}
</script>
</script>

View File

@ -15,8 +15,8 @@
<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" query="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="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>
@ -30,7 +30,7 @@
<%--<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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>

View File

@ -54,7 +54,7 @@
<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,'vendorCode,vendorName','wz_pop_vendor')" value='${tWzRkHeadPage.vendorCode}'/>
<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>

View File

@ -13,7 +13,7 @@
<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="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>
@ -26,9 +26,9 @@
<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="打印" exp="bpmStatus#eq#1" funname="doprint(id)" urlclass="ace_button" />
<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: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>
@ -36,7 +36,7 @@
<%--<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="ExportXls"></t:dgToolBar>--%>
<%--<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
</t:datagrid>
</div>
@ -81,4 +81,4 @@ function ExportXls() {
function ExportXlsByT() {
JeecgExcelExport("tWzRkHeadController.do?exportXlsByT","tWzRkHeadList");
}
</script>
</script>