物资管理:物资业务更新
parent
8dc6f51bee
commit
1e99ae91ca
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,77 +1,52 @@
|
|||
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
|
||||
|
|
|
@ -1,78 +1,54 @@
|
|||
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
|
||||
|
@ -98,7 +74,8 @@ public class TWzMaterialController extends BaseController {
|
|||
@Autowired
|
||||
private Validator validator;
|
||||
|
||||
|
||||
@Autowired
|
||||
private MdGoodsServiceI mdGoodsService;
|
||||
|
||||
/**
|
||||
* 物料列表 页面跳转
|
||||
|
@ -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();
|
||||
|
|
|
@ -1,79 +1,53 @@
|
|||
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
|
||||
|
|
|
@ -1,23 +1,10 @@
|
|||
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: 仓库
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
package com.zzjee.wz.entity;
|
||||
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.lang.String;
|
||||
import java.lang.Double;
|
||||
import java.lang.Integer;
|
||||
import java.math.BigDecimal;
|
||||
import javax.xml.soap.Text;
|
||||
import java.sql.Blob;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
|
@ -84,6 +72,10 @@ 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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +1,10 @@
|
|||
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: 审批配置
|
||||
|
|
|
@ -1,84 +1,52 @@
|
|||
package com.zzjee.wzpo.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.wmutil.erpUtil;
|
||||
import com.zzjee.wzpo.entity.PowzPage;
|
||||
import com.zzjee.wzpo.entity.VWzPoWqEntity;
|
||||
import com.zzjee.wzpo.service.VWzPoWqServiceI;
|
||||
|
||||
import 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
|
||||
|
@ -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) {
|
||||
|
|
|
@ -1,23 +1,11 @@
|
|||
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
|
||||
|
@ -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
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
|
||||
}
|
|
@ -1,79 +1,73 @@
|
|||
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
|
||||
|
@ -101,7 +95,10 @@ public class TWzCkHeadController extends BaseController {
|
|||
|
||||
@Autowired
|
||||
JdbcDao jdbcDao;
|
||||
|
||||
@Autowired
|
||||
private WmOmNoticeHServiceI wmOmNoticeHService;
|
||||
@Autowired
|
||||
private TWzRepairServiceI tWzRepairService;
|
||||
/**
|
||||
* 物料出库列表 页面跳转
|
||||
*
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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());
|
||||
|
@ -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,9 +422,9 @@ 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.setCellStyle(cs2);
|
||||
|
@ -431,8 +433,8 @@ public class TWzCkHeadController extends BaseController {
|
|||
// 合并单元格
|
||||
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();
|
||||
|
@ -667,6 +747,10 @@ 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");
|
||||
}
|
||||
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
package com.zzjee.wzyw.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.md.entity.MdSupEntity;
|
||||
import com.zzjee.md.entity.MvGoodsEntity;
|
||||
import com.zzjee.wm.entity.WmImNoticeHEntity;
|
||||
import com.zzjee.wm.entity.WmImNoticeIEntity;
|
||||
import com.zzjee.wm.service.WmImNoticeHServiceI;
|
||||
import com.zzjee.wmutil.wmUtil;
|
||||
import com.zzjee.wz.entity.TWzMaterialEntity;
|
||||
import com.zzjee.wzyw.entity.TWzCkHeadEntity;
|
||||
import com.zzjee.wzyw.entity.TWzCkItemEntity;
|
||||
import com.zzjee.wzyw.entity.TWzPoHeadEntity;
|
||||
import com.zzjee.wzyw.service.TWzPoHeadServiceI;
|
||||
import com.zzjee.wzyw.page.TWzPoHeadPage;
|
||||
import com.zzjee.wzyw.entity.TWzPoItemEntity;
|
||||
|
||||
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.page.TWzPoHeadPage;
|
||||
import com.zzjee.wzyw.service.TWzPoHeadServiceI;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
import org.apache.poi.hssf.usermodel.HSSFPrintSetup;
|
||||
|
@ -24,67 +23,53 @@ 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.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.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.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author onlineGenerator
|
||||
* @version V1.0
|
||||
* @Title: Controller
|
||||
* @Description: 物料采购订单
|
||||
* @author onlineGenerator
|
||||
* @date 2018-05-21 13:23:13
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Api(value = "TWzPoHead", description = "物料采购订单", tags = "tWzPoHeadController")
|
||||
@Controller
|
||||
|
@ -101,6 +86,8 @@ public class TWzPoHeadController extends BaseController {
|
|||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
@Autowired
|
||||
private WmImNoticeHServiceI wmImNoticeHService;
|
||||
|
||||
/**
|
||||
* 物料采购订单列表 页面跳转
|
||||
|
@ -111,10 +98,12 @@ public class TWzPoHeadController extends BaseController {
|
|||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/wzyw/tWzPoHeadList");
|
||||
}
|
||||
|
||||
@RequestMapping(params = "listsp")
|
||||
public ModelAndView listsp(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/wzyw/tWzPoHeadspList");
|
||||
}
|
||||
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
|
@ -153,6 +142,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
this.tWzPoHeadService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料采购订单
|
||||
*
|
||||
|
@ -206,7 +196,6 @@ public class TWzPoHeadController extends BaseController {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping(params = "doPrint")
|
||||
@ResponseBody
|
||||
public void downReceiveExcel(String id,
|
||||
|
@ -235,9 +224,9 @@ public class TWzPoHeadController extends BaseController {
|
|||
sheet.setMargin(HSSFSheet.LeftMargin, 0.8);// 页边距(左)
|
||||
sheet.setMargin(HSSFSheet.RightMargin, 0.0);// 页边距(右
|
||||
sheet.setColumnWidth(0, 10 * 256);
|
||||
sheet.setColumnWidth(1, 20 * 256);
|
||||
sheet.setColumnWidth(1, 35 * 256);
|
||||
sheet.setColumnWidth(2, 35 * 200);
|
||||
sheet.setColumnWidth(3, 10 * 256);
|
||||
sheet.setColumnWidth(3, 35 * 256);
|
||||
sheet.setColumnWidth(4, 10 * 256);
|
||||
sheet.setColumnWidth(5, 10 * 256);
|
||||
// sheet.setColumnWidth(6, 8 * 256);
|
||||
|
@ -338,7 +327,10 @@ public class TWzPoHeadController extends BaseController {
|
|||
Cell cellHead35 = rowHead3.createCell(2);
|
||||
cellHead35.setCellValue("采购人:" + tWzPoHead.getCreateName());
|
||||
cellHead35.setCellStyle(cs2);
|
||||
|
||||
Row rowHead4 = sheet.createRow((short) 5); // 头部第三行
|
||||
Cell cellHead41 = rowHead4.createCell(0);
|
||||
cellHead41.setCellValue("类型:" + tWzPoHead.getPoBy1());
|
||||
cellHead41.setCellStyle(cs2);
|
||||
// 合并单元格
|
||||
CellRangeAddress c = new CellRangeAddress(0, 0, 0, 5); // 第一行空白
|
||||
CellRangeAddress c0 = new CellRangeAddress(1, 1, 0, 5);// 第二行标题
|
||||
|
@ -349,6 +341,8 @@ public class TWzPoHeadController extends BaseController {
|
|||
CellRangeAddress c3 = new CellRangeAddress(3, 3, 2, 5);// 第四行客户送货时间
|
||||
CellRangeAddress c4 = new CellRangeAddress(4, 4, 0, 1);// 第五行客户
|
||||
CellRangeAddress c5 = new CellRangeAddress(4, 4, 2, 5);// 第五行客户送货时间
|
||||
CellRangeAddress c6 = new CellRangeAddress(5, 5, 0, 5); // 第一行空白
|
||||
|
||||
// CellRangeAddress c4 = new CellRangeAddress(4, 4, 0, 1);
|
||||
// CellRangeAddress c5 = new CellRangeAddress(4, 4, 2, 3);
|
||||
// CellRangeAddress c6 = new CellRangeAddress(4, 4, 4, 5);
|
||||
|
@ -362,9 +356,9 @@ public class TWzPoHeadController extends BaseController {
|
|||
sheet.addMergedRegion(c4);
|
||||
sheet.addMergedRegion(c5);
|
||||
sheet.addMergedRegion(c11);
|
||||
// sheet.addMergedRegion(c7);
|
||||
sheet.addMergedRegion(c6);
|
||||
|
||||
Row rowColumnName = sheet.createRow((short) 6); // 列名
|
||||
Row rowColumnName = sheet.createRow((short) 7); // 列名
|
||||
rowColumnName.setHeight((short) 500);
|
||||
String[] columnNames = {"序号", "物料编码", "物料名称", "数量", "单位",
|
||||
"备注"};
|
||||
|
@ -374,7 +368,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
cell.setCellValue(columnNames[i]);
|
||||
cell.setCellStyle(cs3);
|
||||
}
|
||||
int cellsNum = 6;
|
||||
int cellsNum = 7;
|
||||
int cerconNo = 1;
|
||||
for (int i = 0; i < tWzPoItemEntityList.size(); i++) {
|
||||
TWzPoItemEntity entity = tWzPoItemEntityList.get(i);
|
||||
|
@ -402,7 +396,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
}
|
||||
try {
|
||||
Cell cell4 = rowColumnValue.createCell(3);
|
||||
cell4.setCellValue(entity.getMatQty());
|
||||
cell4.setCellValue(StringUtil.moneyToString(entity.getMatQty(),"#.0000"));
|
||||
cell4.setCellStyle(cs3);
|
||||
} catch (Exception e) {
|
||||
|
||||
|
@ -414,7 +408,8 @@ public class TWzPoHeadController extends BaseController {
|
|||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
;try {
|
||||
;
|
||||
try {
|
||||
|
||||
|
||||
Cell cell6 = rowColumnValue.createCell(5);
|
||||
|
@ -453,7 +448,6 @@ public class TWzPoHeadController extends BaseController {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 添加物料采购订单
|
||||
*
|
||||
|
@ -466,7 +460,59 @@ public class TWzPoHeadController extends BaseController {
|
|||
AjaxJson j = new AjaxJson();
|
||||
String message = "添加成功";
|
||||
try {
|
||||
tWzPoHead.setBpmStatus("1");
|
||||
tWzPoHeadService.addMain(tWzPoHead, tWzPoItemList);
|
||||
|
||||
String poid = tWzPoHead.getId().toString();
|
||||
String cusCode = "";
|
||||
List<WmImNoticeHEntity> wmimh = systemService.findByProperty(WmImNoticeHEntity.class, "imCusCode", poid);
|
||||
if (wmimh != null && wmimh.size() > 0) {
|
||||
message = "生成入库通知失败,请手工录入入库通知";
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
List<WmImNoticeIEntity> wmImNoticeIListnew = new ArrayList<WmImNoticeIEntity>();
|
||||
for (TWzPoItemEntity page : tWzPoItemList) {
|
||||
WmImNoticeIEntity wmi = new WmImNoticeIEntity();
|
||||
wmi.setGoodsCode(page.getMatCode());
|
||||
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(
|
||||
MvGoodsEntity.class, "goodsCode", wmi.getGoodsCode());
|
||||
if (mvgoods != null) {
|
||||
cusCode = mvgoods.getCusCode();
|
||||
wmi.setGoodsName(mvgoods.getGoodsName());
|
||||
wmi.setGoodsUnit(mvgoods.getShlDanWei());
|
||||
}
|
||||
try {
|
||||
wmi.setGoodsCount(page.getMatQty());
|
||||
String[] args = page.getMatQty().split("\\.");
|
||||
wmi.setGoodsCount(args[0]);
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
wmi.setOtherId(page.getId());
|
||||
wmImNoticeIListnew.add(wmi);
|
||||
|
||||
}
|
||||
|
||||
WmImNoticeHEntity wmImNoticeH = new WmImNoticeHEntity();
|
||||
wmImNoticeH.setOrderTypeCode("01");
|
||||
String noticeid = wmUtil.getNextNoticeid(wmImNoticeH.getOrderTypeCode());
|
||||
wmImNoticeH.setCusCode(cusCode);
|
||||
wmImNoticeH.setNoticeId(noticeid);
|
||||
wmImNoticeH.setImData(tWzPoHead.getDocDate());
|
||||
// wmImNoticeH.setPlatformCode(pageheader.getCusCode());
|
||||
wmImNoticeH.setImBeizhu(tWzPoHead.getPoRemark());
|
||||
wmImNoticeH.setSupCode(tWzPoHead.getVendorCode());
|
||||
MdSupEntity mdsup = systemService.findUniqueByProperty(MdSupEntity.class, "gysBianMa", wmImNoticeH.getSupCode());
|
||||
if (mdsup != null) {
|
||||
wmImNoticeH.setSupName(mdsup.getZhongWenQch());
|
||||
}
|
||||
wmImNoticeH.setImCusCode(poid);
|
||||
|
||||
wmImNoticeHService.addMain(wmImNoticeH, wmImNoticeIListnew);
|
||||
|
||||
|
||||
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
@ -663,6 +709,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param
|
||||
* @return
|
||||
|
@ -701,6 +748,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*/
|
||||
|
@ -713,6 +761,7 @@ public class TWzPoHeadController extends BaseController {
|
|||
map.put(NormalExcelConstants.DATA_LIST, new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
|
|
|
@ -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,61 +19,48 @@ 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
|
||||
|
@ -684,7 +668,7 @@ public class TWzRkHeadController extends BaseController {
|
|||
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);
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
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: 物料出库
|
||||
|
@ -76,10 +64,13 @@ 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;
|
||||
|
|
|
@ -1,22 +1,11 @@
|
|||
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: 出库商品
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
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: 物料采购订单
|
||||
|
|
|
@ -1,22 +1,11 @@
|
|||
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: 采购订单行项目
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
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: 入库抬头
|
||||
|
|
|
@ -1,22 +1,10 @@
|
|||
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: 入库商品
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
|
||||
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: 物料出库
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
|
||||
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: 物料采购订单
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
|
||||
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: 入库抬头
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
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 {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
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 {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
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 {
|
||||
|
||||
|
|
|
@ -1,23 +1,18 @@
|
|||
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")
|
||||
|
@ -33,14 +28,14 @@ public class TWzCkHeadServiceImpl extends CommonServiceImpl implements TWzCkHead
|
|||
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增强
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
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")
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
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")
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -12,7 +12,93 @@
|
|||
<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">
|
||||
<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,6 +110,17 @@
|
|||
<span class="Validform_checktip"></span>
|
||||
<label class="Validform_label" style="display: none;">物料编码</label>
|
||||
</td>
|
||||
|
||||
<td align="right">
|
||||
<label class="Validform_label">
|
||||
物料条码:
|
||||
</label>
|
||||
</td>
|
||||
<td class="value">
|
||||
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" />
|
||||
<span class="Validform_checktip"></span>
|
||||
<label class="Validform_label" style="display: none;">物料条码</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
|
@ -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>
|
||||
|
||||
<td align="right">
|
||||
<label class="Validform_label">
|
||||
库存地点:
|
||||
</label>
|
||||
</td>
|
||||
<td class="value">
|
||||
<t:dictSelect field="matLocation" type="list" datatype="*" dictTable="t_wz_location" dictField="mat_location" dictText="mat_location" defaultVal="${tWzMaterialPage.matLocation}" hasLabel="false" title="库存地点" ></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
<label class="Validform_label" style="display: none;">库存地点</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<label class="Validform_label">
|
||||
仓库:
|
||||
附件:
|
||||
</label>
|
||||
</td>
|
||||
<td class="value">
|
||||
<t: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:webUploader auto="true" name="by6" duplicate="true" fileNumLimit="1"></t:webUploader>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
|
|
|
@ -12,7 +12,87 @@
|
|||
<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">
|
||||
<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,8 +101,17 @@
|
|||
</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>
|
||||
|
||||
<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>
|
||||
|
@ -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>
|
||||
|
||||
<td align="right">
|
||||
<label class="Validform_label">
|
||||
库存地点:
|
||||
</label>
|
||||
</td>
|
||||
<td class="value">
|
||||
<t:dictSelect field="matLocation" type="list" datatype="*" dictTable="t_wz_location" dictField="mat_location" dictText="mat_location" defaultVal="${tWzMaterialPage.matLocation}" hasLabel="false" title="库存地点" ></t:dictSelect>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
<label class="Validform_label">
|
||||
仓库:
|
||||
附件:
|
||||
</label>
|
||||
</td>
|
||||
<td class="value">
|
||||
<t: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:webUploader auto="true" pathValues="${tWzMaterialPage.by6}" name="by6" duplicate="true" fileNumLimit="1"></t:webUploader>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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));
|
||||
}
|
|
@ -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>
|
|
@ -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>
|
||||
|
@ -124,7 +129,7 @@
|
|||
<%-- 增加一个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>
|
||||
|
|
@ -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>
|
||||
<%--</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>--%>
|
||||
<%--<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}'/>--%>
|
||||
<%--<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>--%>
|
||||
<%--<label class="Validform_label" style="display: none;">领用部门</label>--%>
|
||||
<%--</td>--%>
|
||||
</tr>
|
||||
<%--<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}'/>–%>--%>
|
||||
<%--<%–<span class="Validform_checktip"></span>–%>--%>
|
||||
<%--<%–<label class="Validform_label" style="display: none;">附件</label>–%>--%>
|
||||
<%--<%–</td>–%>--%>
|
||||
<%--</tr>--%>
|
||||
|
||||
</table>
|
||||
<div style="width: auto;height: 200px;">
|
||||
<%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
|
||||
<div style="width:800px;height:1px;"></div>
|
||||
<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
|
||||
<t:tab href="tWzCkHeadController.do?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;">--%>
|
||||
<%--<%– 增加一个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 }" />--%>
|
||||
|
||||
|
||||
<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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -25,6 +25,50 @@
|
|||
$(".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>
|
||||
|
@ -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,9 +124,9 @@
|
|||
<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"/>
|
||||
|
@ -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,8 +188,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 }"/>
|
||||
|
@ -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 }"/>
|
||||
|
|
|
@ -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 }"/>
|
||||
|
|
|
@ -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>
|
||||
|
|
@ -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,用于调节页面大小,否则默认太小 --%>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue