上下架读取商品名称

master
e 2019-12-11 11:37:41 +08:00
parent fbd44f3fe3
commit 49f167ce28
17 changed files with 2606 additions and 46 deletions

View File

@ -68,8 +68,8 @@ import org.springframework.web.util.UriComponentsBuilder;
/**
* @Title: Controller
* @Description: wave_to_down
* @author erzhongxmu
* @date 2018-09-10 13:09:35
* @author onlineGenerator
* @date 2019-12-11 11:32:25
* @version V1.0
*
*/

View File

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

View File

@ -21,8 +21,8 @@ import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: wave_to_down
* @author erzhongxmu
* @date 2018-09-10 13:09:35
* @author onlineGenerator
* @date 2019-12-11 11:32:25
* @version V1.0
*
*/
@ -33,10 +33,10 @@ public class WaveToDownEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人登录名称*/
// @Excel(name="创建人登录名称")
@Excel(name="创建人登录名称")
private String createBy;
/**创建人名称*/
// @Excel(name="创建人名称")
@Excel(name="创建人名称")
private String createName;
/**货主*/
@Excel(name="货主")
@ -45,7 +45,7 @@ public class WaveToDownEntity implements java.io.Serializable {
@Excel(name="客户名称")
private String cusName;
/**waveId*/
@Excel(name="波次号")
@Excel(name="waveId")
private String waveId;
/**商品编码*/
@Excel(name="商品编码")
@ -53,11 +53,9 @@ public class WaveToDownEntity implements java.io.Serializable {
/**商品名称*/
@Excel(name="商品名称")
private String goodsName;
/**客户订单号*/
@Excel(name="客户订单号")
private java.lang.String imCusCode;
/**imCusCode*/
@Excel(name="imCusCode")
private String imCusCode;
/**仓位*/
@Excel(name="仓位")
private String binId;
@ -67,14 +65,36 @@ public class WaveToDownEntity implements java.io.Serializable {
/**生产日期*/
@Excel(name="生产日期")
private String proData;
@Excel(name="可用库存")
private java.lang.String omBeizhu;
/**baseGoodscount*/
@Excel(name="数量")
@Excel(name="baseGoodscount")
private Double baseGoodscount;
/**omBeiZhu*/
@Excel(name="omBeiZhu")
private String omBeiZhu;
/**基本单位*/
@Excel(name="基本单位")
private String baseUnit;
/**firstRq*/
@Excel(name="firstRq")
private String firstRq;
/**secondRq*/
@Excel(name="secondRq")
private String secondRq;
/**by1*/
@Excel(name="by1")
private String by1;
/**by2*/
@Excel(name="by2")
private String by2;
/**by3*/
@Excel(name="by3")
private String by3;
/**by4*/
@Excel(name="by4")
private String by4;
/**by5*/
@Excel(name="by5")
private String by5;
/**
*: java.lang.String
@ -147,7 +167,7 @@ public class WaveToDownEntity implements java.io.Serializable {
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CUS_NAME",nullable=true,length=45)
@Column(name ="CUS_NAME",nullable=true,length=145)
public String getCusName(){
return this.cusName;
}
@ -207,6 +227,22 @@ public class WaveToDownEntity implements java.io.Serializable {
public void setGoodsName(String goodsName){
this.goodsName = goodsName;
}
/**
*: java.lang.String
*@return: java.lang.String imCusCode
*/
@Column(name ="IM_CUS_CODE",nullable=true,length=45)
public String getImCusCode(){
return this.imCusCode;
}
/**
*: java.lang.String
*@param: java.lang.String imCusCode
*/
public void setImCusCode(String imCusCode){
this.imCusCode = imCusCode;
}
/**
*: java.lang.String
*@return: java.lang.String
@ -271,6 +307,22 @@ public class WaveToDownEntity implements java.io.Serializable {
public void setBaseGoodscount(Double baseGoodscount){
this.baseGoodscount = baseGoodscount;
}
/**
*: java.lang.String
*@return: java.lang.String omBeiZhu
*/
@Column(name ="OM_BEI_ZHU",nullable=true,length=42)
public String getOmBeiZhu(){
return this.omBeiZhu;
}
/**
*: java.lang.String
*@param: java.lang.String omBeiZhu
*/
public void setOmBeiZhu(String omBeiZhu){
this.omBeiZhu = omBeiZhu;
}
/**
*: java.lang.String
*@return: java.lang.String
@ -287,32 +339,116 @@ public class WaveToDownEntity implements java.io.Serializable {
public void setBaseUnit(String baseUnit){
this.baseUnit = baseUnit;
}
@Column(name ="OM_BEI_ZHU",nullable=true,length=32)
public java.lang.String getOmBeizhu(){
return this.omBeizhu;
/**
*: java.lang.String
*@return: java.lang.String firstRq
*/
@Column(name ="FIRST_RQ",nullable=true,length=45)
public String getFirstRq(){
return this.firstRq;
}
/**
*: java.lang.String
*@param: java.lang.String
*@param: java.lang.String firstRq
*/
public void setOmBeizhu(java.lang.String omBeizhu){
this.omBeizhu = omBeizhu;
public void setFirstRq(String firstRq){
this.firstRq = firstRq;
}
@Column(name ="IM_CUS_CODE",nullable=true,length=32)
public java.lang.String getImCusCode(){
return this.imCusCode;
/**
*: java.lang.String
*@return: java.lang.String secondRq
*/
@Column(name ="SECOND_RQ",nullable=true,length=45)
public String getSecondRq(){
return this.secondRq;
}
/**
*: java.lang.String
*@param: java.lang.String
*@param: java.lang.String secondRq
*/
public void setImCusCode(java.lang.String imCusCode){
this.imCusCode = imCusCode;
public void setSecondRq(String secondRq){
this.secondRq = secondRq;
}
/**
*: java.lang.String
*@return: java.lang.String by1
*/
@Column(name ="BY1",nullable=false)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String by1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String by2
*/
@Column(name ="BY2",nullable=false)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String by2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String by3
*/
@Column(name ="BY3",nullable=false)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String by3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String by4
*/
@Column(name ="BY4",nullable=false)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String by4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String by5
*/
@Column(name ="BY5",nullable=false)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String by5
*/
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

@ -0,0 +1,454 @@
package com.zzjee.wave.entity;
import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import java.sql.Blob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;
/**
* @Title: Entity
* @Description: wave_to_fj
* @author onlineGenerator
* @date 2019-12-11 11:32:18
* @version V1.0
*
*/
@Entity
@Table(name = "wave_to_fj", schema = "")
@SuppressWarnings("serial")
public class WaveToFjEntity implements java.io.Serializable {
/**主键*/
private String id;
/**创建人登录名称*/
@Excel(name="创建人登录名称")
private String createBy;
/**创建人名称*/
@Excel(name="创建人名称")
private String createName;
/**货主*/
@Excel(name="货主")
private String cusCode;
/**客户名称*/
@Excel(name="客户名称")
private String cusName;
/**到货通知单*/
@Excel(name="到货通知单")
private String omNoticeId;
/**到货通知行项目*/
@Excel(name="到货通知行项目")
private String iomNoticeItem;
/**商品编码*/
@Excel(name="商品编码")
private String goodsId;
/**商品名称*/
@Excel(name="商品名称")
private String goodsName;
/**仓位*/
@Excel(name="仓位")
private String binId;
/**托盘*/
@Excel(name="托盘")
private String tinId;
/**生产日期*/
@Excel(name="生产日期")
private String proData;
/**baseGoodscount*/
@Excel(name="baseGoodscount")
private Double baseGoodscount;
/**基本单位*/
@Excel(name="基本单位")
private String baseUnit;
/**waveId*/
@Excel(name="waveId")
private String waveId;
/**firstRq*/
@Excel(name="firstRq")
private String firstRq;
/**secondRq*/
@Excel(name="secondRq")
private String secondRq;
/**by1*/
@Excel(name="by1")
private String by1;
/**by2*/
@Excel(name="by2")
private String by2;
/**by3*/
@Excel(name="by3")
private String by3;
/**by4*/
@Excel(name="by4")
private String by4;
/**by5*/
@Excel(name="by5")
private String by5;
/**
*: java.lang.String
*@return: java.lang.String
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=36)
public String getId(){
return this.id;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setId(String id){
this.id = id;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CREATE_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.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 ="CUS_CODE",nullable=true,length=36)
public String getCusCode(){
return this.cusCode;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCusCode(String cusCode){
this.cusCode = cusCode;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="CUS_NAME",nullable=true,length=145)
public String getCusName(){
return this.cusName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setCusName(String cusName){
this.cusName = cusName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="OM_NOTICE_ID",nullable=true,length=36)
public String getOmNoticeId(){
return this.omNoticeId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setOmNoticeId(String omNoticeId){
this.omNoticeId = omNoticeId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="IOM_NOTICE_ITEM",nullable=true,length=36)
public String getIomNoticeItem(){
return this.iomNoticeItem;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setIomNoticeItem(String iomNoticeItem){
this.iomNoticeItem = iomNoticeItem;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="GOODS_ID",nullable=true,length=36)
public String getGoodsId(){
return this.goodsId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setGoodsId(String goodsId){
this.goodsId = goodsId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="GOODS_NAME",nullable=true,length=145)
public String getGoodsName(){
return this.goodsName;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setGoodsName(String goodsName){
this.goodsName = goodsName;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="BIN_ID",nullable=true,length=32)
public String getBinId(){
return this.binId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBinId(String binId){
this.binId = binId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="TIN_ID",nullable=true,length=32)
public String getTinId(){
return this.tinId;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setTinId(String tinId){
this.tinId = tinId;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="PRO_DATA",nullable=true,length=32)
public String getProData(){
return this.proData;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setProData(String proData){
this.proData = proData;
}
/**
*: java.lang.Double
*@return: java.lang.Double baseGoodscount
*/
@Column(name ="BASE_GOODSCOUNT",nullable=true,length=23)
public Double getBaseGoodscount(){
return this.baseGoodscount;
}
/**
*: java.lang.Double
*@param: java.lang.Double baseGoodscount
*/
public void setBaseGoodscount(Double baseGoodscount){
this.baseGoodscount = baseGoodscount;
}
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="BASE_UNIT",nullable=true,length=45)
public String getBaseUnit(){
return this.baseUnit;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBaseUnit(String baseUnit){
this.baseUnit = baseUnit;
}
/**
*: java.lang.String
*@return: java.lang.String waveId
*/
@Column(name ="WAVE_ID",nullable=true,length=45)
public String getWaveId(){
return this.waveId;
}
/**
*: java.lang.String
*@param: java.lang.String waveId
*/
public void setWaveId(String waveId){
this.waveId = waveId;
}
/**
*: java.lang.String
*@return: java.lang.String firstRq
*/
@Column(name ="FIRST_RQ",nullable=true,length=45)
public String getFirstRq(){
return this.firstRq;
}
/**
*: java.lang.String
*@param: java.lang.String firstRq
*/
public void setFirstRq(String firstRq){
this.firstRq = firstRq;
}
/**
*: java.lang.String
*@return: java.lang.String secondRq
*/
@Column(name ="SECOND_RQ",nullable=true,length=45)
public String getSecondRq(){
return this.secondRq;
}
/**
*: java.lang.String
*@param: java.lang.String secondRq
*/
public void setSecondRq(String secondRq){
this.secondRq = secondRq;
}
/**
*: java.lang.String
*@return: java.lang.String by1
*/
@Column(name ="BY1",nullable=false)
public String getBy1(){
return this.by1;
}
/**
*: java.lang.String
*@param: java.lang.String by1
*/
public void setBy1(String by1){
this.by1 = by1;
}
/**
*: java.lang.String
*@return: java.lang.String by2
*/
@Column(name ="BY2",nullable=false)
public String getBy2(){
return this.by2;
}
/**
*: java.lang.String
*@param: java.lang.String by2
*/
public void setBy2(String by2){
this.by2 = by2;
}
/**
*: java.lang.String
*@return: java.lang.String by3
*/
@Column(name ="BY3",nullable=false)
public String getBy3(){
return this.by3;
}
/**
*: java.lang.String
*@param: java.lang.String by3
*/
public void setBy3(String by3){
this.by3 = by3;
}
/**
*: java.lang.String
*@return: java.lang.String by4
*/
@Column(name ="BY4",nullable=false)
public String getBy4(){
return this.by4;
}
/**
*: java.lang.String
*@param: java.lang.String by4
*/
public void setBy4(String by4){
this.by4 = by4;
}
/**
*: java.lang.String
*@return: java.lang.String by5
*/
@Column(name ="BY5",nullable=false)
public String getBy5(){
return this.by5;
}
/**
*: java.lang.String
*@param: java.lang.String by5
*/
public void setBy5(String by5){
this.by5 = by5;
}
}

View File

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

View File

@ -84,11 +84,20 @@ public class WaveToDownServiceImpl extends CommonServiceImpl implements WaveToDo
map.put("wave_id", t.getWaveId());
map.put("goods_id", t.getGoodsId());
map.put("goods_name", t.getGoodsName());
map.put("im_cus_code", t.getImCusCode());
map.put("bin_id", t.getBinId());
map.put("tin_id", t.getTinId());
map.put("pro_data", t.getProData());
map.put("base_goodscount", t.getBaseGoodscount());
map.put("om_bei_zhu", t.getOmBeiZhu());
map.put("base_unit", t.getBaseUnit());
map.put("first_rq", t.getFirstRq());
map.put("second_rq", t.getSecondRq());
map.put("by1", t.getBy1());
map.put("by2", t.getBy2());
map.put("by3", t.getBy3());
map.put("by4", t.getBy4());
map.put("by5", t.getBy5());
return map;
}
@ -107,11 +116,20 @@ public class WaveToDownServiceImpl extends CommonServiceImpl implements WaveToDo
sql = sql.replace("#{wave_id}",String.valueOf(t.getWaveId()));
sql = sql.replace("#{goods_id}",String.valueOf(t.getGoodsId()));
sql = sql.replace("#{goods_name}",String.valueOf(t.getGoodsName()));
sql = sql.replace("#{im_cus_code}",String.valueOf(t.getImCusCode()));
sql = sql.replace("#{bin_id}",String.valueOf(t.getBinId()));
sql = sql.replace("#{tin_id}",String.valueOf(t.getTinId()));
sql = sql.replace("#{pro_data}",String.valueOf(t.getProData()));
sql = sql.replace("#{base_goodscount}",String.valueOf(t.getBaseGoodscount()));
sql = sql.replace("#{om_bei_zhu}",String.valueOf(t.getOmBeiZhu()));
sql = sql.replace("#{base_unit}",String.valueOf(t.getBaseUnit()));
sql = sql.replace("#{first_rq}",String.valueOf(t.getFirstRq()));
sql = sql.replace("#{second_rq}",String.valueOf(t.getSecondRq()));
sql = sql.replace("#{by1}",String.valueOf(t.getBy1()));
sql = sql.replace("#{by2}",String.valueOf(t.getBy2()));
sql = sql.replace("#{by3}",String.valueOf(t.getBy3()));
sql = sql.replace("#{by4}",String.valueOf(t.getBy4()));
sql = sql.replace("#{by5}",String.valueOf(t.getBy5()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}

View File

@ -0,0 +1,160 @@
package com.zzjee.wave.service.impl;
import com.zzjee.wave.service.WaveToFjServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import com.zzjee.wave.entity.WaveToFjEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.io.Serializable;
import org.jeecgframework.core.util.ApplicationContextUtil;
import org.jeecgframework.core.util.MyClassLoader;
import org.jeecgframework.core.util.StringUtil;
import org.jeecgframework.web.cgform.enhance.CgformEnhanceJavaInter;
@Service("waveToFjService")
@Transactional
public class WaveToFjServiceImpl extends CommonServiceImpl implements WaveToFjServiceI {
public void delete(WaveToFjEntity entity) throws Exception{
super.delete(entity);
//执行删除操作增强业务
this.doDelBus(entity);
}
public Serializable save(WaveToFjEntity entity) throws Exception{
Serializable t = super.save(entity);
//执行新增操作增强业务
this.doAddBus(entity);
return t;
}
public void saveOrUpdate(WaveToFjEntity entity) throws Exception{
super.saveOrUpdate(entity);
//执行更新操作增强业务
this.doUpdateBus(entity);
}
/**
*
* @param t
* @return
*/
private void doAddBus(WaveToFjEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param t
* @return
*/
private void doUpdateBus(WaveToFjEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
/**
*
* @param id
* @return
*/
private void doDelBus(WaveToFjEntity t) throws Exception{
//-----------------sql增强 start----------------------------
//-----------------sql增强 end------------------------------
//-----------------java增强 start---------------------------
//-----------------java增强 end-----------------------------
}
private Map<String,Object> populationMap(WaveToFjEntity t){
Map<String,Object> map = new HashMap<String,Object>();
map.put("id", t.getId());
map.put("create_by", t.getCreateBy());
map.put("create_name", t.getCreateName());
map.put("cus_code", t.getCusCode());
map.put("cus_name", t.getCusName());
map.put("om_notice_id", t.getOmNoticeId());
map.put("iom_notice_item", t.getIomNoticeItem());
map.put("goods_id", t.getGoodsId());
map.put("goods_name", t.getGoodsName());
map.put("bin_id", t.getBinId());
map.put("tin_id", t.getTinId());
map.put("pro_data", t.getProData());
map.put("base_goodscount", t.getBaseGoodscount());
map.put("base_unit", t.getBaseUnit());
map.put("wave_id", t.getWaveId());
map.put("first_rq", t.getFirstRq());
map.put("second_rq", t.getSecondRq());
map.put("by1", t.getBy1());
map.put("by2", t.getBy2());
map.put("by3", t.getBy3());
map.put("by4", t.getBy4());
map.put("by5", t.getBy5());
return map;
}
/**
* sql
* @param sql
* @param t
* @return
*/
public String replaceVal(String sql,WaveToFjEntity t){
sql = sql.replace("#{id}",String.valueOf(t.getId()));
sql = sql.replace("#{create_by}",String.valueOf(t.getCreateBy()));
sql = sql.replace("#{create_name}",String.valueOf(t.getCreateName()));
sql = sql.replace("#{cus_code}",String.valueOf(t.getCusCode()));
sql = sql.replace("#{cus_name}",String.valueOf(t.getCusName()));
sql = sql.replace("#{om_notice_id}",String.valueOf(t.getOmNoticeId()));
sql = sql.replace("#{iom_notice_item}",String.valueOf(t.getIomNoticeItem()));
sql = sql.replace("#{goods_id}",String.valueOf(t.getGoodsId()));
sql = sql.replace("#{goods_name}",String.valueOf(t.getGoodsName()));
sql = sql.replace("#{bin_id}",String.valueOf(t.getBinId()));
sql = sql.replace("#{tin_id}",String.valueOf(t.getTinId()));
sql = sql.replace("#{pro_data}",String.valueOf(t.getProData()));
sql = sql.replace("#{base_goodscount}",String.valueOf(t.getBaseGoodscount()));
sql = sql.replace("#{base_unit}",String.valueOf(t.getBaseUnit()));
sql = sql.replace("#{wave_id}",String.valueOf(t.getWaveId()));
sql = sql.replace("#{first_rq}",String.valueOf(t.getFirstRq()));
sql = sql.replace("#{second_rq}",String.valueOf(t.getSecondRq()));
sql = sql.replace("#{by1}",String.valueOf(t.getBy1()));
sql = sql.replace("#{by2}",String.valueOf(t.getBy2()));
sql = sql.replace("#{by3}",String.valueOf(t.getBy3()));
sql = sql.replace("#{by4}",String.valueOf(t.getBy4()));
sql = sql.replace("#{by5}",String.valueOf(t.getBy5()));
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
return sql;
}
/**
* JAVA
*/
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
if(StringUtil.isNotEmpty(cgJavaValue)){
Object obj = null;
try {
if("class".equals(cgJavaType)){
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
}else if("spring".equals(cgJavaType)){
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
}
if(obj instanceof CgformEnhanceJavaInter){
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
javaInter.execute("wave_to_fj",data);
}
} catch (Exception e) {
e.printStackTrace();
throw new Exception("执行JAVA增强出现异常");
}
}
}
}

View File

@ -0,0 +1,320 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>wave_to_down</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="waveToDownController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${waveToDownPage.id }"/>
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
创建人登录名称:
</label>
</td>
<td class="value">
<input id="createBy" name="createBy" 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="createName" name="createName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">创建人名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
货主:
</label>
</td>
<td class="value">
<input id="cusCode" name="cusCode" 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="cusName" name="cusName" 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">
waveId:
</label>
</td>
<td class="value">
<input id="waveId" name="waveId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">waveId</label>
</td>
<td align="right">
<label class="Validform_label">
商品编码:
</label>
</td>
<td class="value">
<input id="goodsId" name="goodsId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">商品编码</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
商品名称:
</label>
</td>
<td class="value">
<input id="goodsName" name="goodsName" 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">
imCusCode:
</label>
</td>
<td class="value">
<input id="imCusCode" name="imCusCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">imCusCode</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
仓位:
</label>
</td>
<td class="value">
<input id="binId" name="binId" 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="tinId" name="tinId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">托盘</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
生产日期:
</label>
</td>
<td class="value">
<input id="proData" name="proData" 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">
baseGoodscount:
</label>
</td>
<td class="value">
<input id="baseGoodscount" name="baseGoodscount" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">baseGoodscount</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
omBeiZhu:
</label>
</td>
<td class="value">
<input id="omBeiZhu" name="omBeiZhu" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">omBeiZhu</label>
</td>
<td align="right">
<label class="Validform_label">
基本单位:
</label>
</td>
<td class="value">
<input id="baseUnit" name="baseUnit" 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">
firstRq:
</label>
</td>
<td class="value">
<input id="firstRq" name="firstRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">firstRq</label>
</td>
<td align="right">
<label class="Validform_label">
secondRq:
</label>
</td>
<td class="value">
<input id="secondRq" name="secondRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">secondRq</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by1:
</label>
</td>
<td class="value">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by1</label>
</td>
<td align="right">
<label class="Validform_label">
by2:
</label>
</td>
<td class="value">
<input id="by2" name="by2" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by2</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by3:
</label>
</td>
<td class="value">
<input id="by3" name="by3" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by3</label>
</td>
<td align="right">
<label class="Validform_label">
by4:
</label>
</td>
<td class="value">
<input id="by4" name="by4" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by4</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by5:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by5</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wave/waveToDown.js"></script>

View File

@ -0,0 +1,299 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>wave_to_down</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="waveToDownController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${waveToDownPage.id }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
创建人登录名称:
</label>
</td>
<td class="value">
<input id="createBy" name="createBy" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.createBy}'>
<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="createName" name="createName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.createName}'>
<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="cusCode" name="cusCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.cusCode}'>
<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="cusName" name="cusName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.cusName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">客户名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
waveId:
</label>
</td>
<td class="value">
<input id="waveId" name="waveId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.waveId}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">waveId</label>
</td>
<td align="right">
<label class="Validform_label">
商品编码:
</label>
</td>
<td class="value">
<input id="goodsId" name="goodsId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.goodsId}'>
<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="goodsName" name="goodsName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.goodsName}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">商品名称</label>
</td>
<td align="right">
<label class="Validform_label">
imCusCode:
</label>
</td>
<td class="value">
<input id="imCusCode" name="imCusCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.imCusCode}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">imCusCode</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
仓位:
</label>
</td>
<td class="value">
<input id="binId" name="binId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.binId}'>
<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="tinId" name="tinId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.tinId}'>
<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="proData" name="proData" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.proData}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">生产日期</label>
</td>
<td align="right">
<label class="Validform_label">
baseGoodscount:
</label>
</td>
<td class="value">
<input id="baseGoodscount" name="baseGoodscount" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.baseGoodscount}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">baseGoodscount</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
omBeiZhu:
</label>
</td>
<td class="value">
<input id="omBeiZhu" name="omBeiZhu" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.omBeiZhu}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">omBeiZhu</label>
</td>
<td align="right">
<label class="Validform_label">
基本单位:
</label>
</td>
<td class="value">
<input id="baseUnit" name="baseUnit" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.baseUnit}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">基本单位</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
firstRq:
</label>
</td>
<td class="value">
<input id="firstRq" name="firstRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.firstRq}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">firstRq</label>
</td>
<td align="right">
<label class="Validform_label">
secondRq:
</label>
</td>
<td class="value">
<input id="secondRq" name="secondRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToDownPage.secondRq}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">secondRq</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by1:
</label>
</td>
<td class="value">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToDownPage.by1}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by1</label>
</td>
<td align="right">
<label class="Validform_label">
by2:
</label>
</td>
<td class="value">
<input id="by2" name="by2" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToDownPage.by2}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by2</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by3:
</label>
</td>
<td class="value">
<input id="by3" name="by3" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToDownPage.by3}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by3</label>
</td>
<td align="right">
<label class="Validform_label">
by4:
</label>
</td>
<td class="value">
<input id="by4" name="by4" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToDownPage.by4}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by4</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by5:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToDownPage.by5}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by5</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wave/waveToDown.js"></script>

View File

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

View File

@ -3,29 +3,35 @@
<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="waveToDownList" sortName="waveId" sortOrder="desc" checkbox="true" pagination="true" fitColumns="false" title="波次下架导出" actionUrl="waveToDownController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:datagrid name="waveToDownList" checkbox="true" pagination="true" fitColumns="false" title="波次下架" actionUrl="waveToDownController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="货主" field="cusCode" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="客户名称" field="cusName" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="波次号" field="waveId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="商品编码" field="goodsId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="商品名称" field="goodsName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="客户订单号" field="imCusCode" query="true" queryMode="single" width="100"></t:dgCol>
<t:dgCol title="仓位" field="binId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="托盘" field="tinId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="生产日期" field="proData" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="数量" field="baseGoodscount" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="可用库存" field="omBeizhu" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="基本单位" field="baseUnit" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
<t:dgCol title="客户名称" field="cusName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="波次号" field="waveId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="商品编码" field="goodsId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="商品名称" field="goodsName" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="单号" field="imCusCode" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="仓位" field="binId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="托盘" field="tinId" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="生产日期" field="proData" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="数量" field="baseGoodscount" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="出库备注" field="omBeiZhu" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="基本单位" field="baseUnit" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="一次下架容器" field="firstRq" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="分拣容器" field="secondRq" queryMode="group" width="120"></t:dgCol>
<%--<t:dgCol title="by1" field="by1" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by2" field="by2" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by3" field="by3" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by4" field="by4" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by5" field="by5" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
<%--<t:dgDelOpt title="删除" url="waveToDownController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<%--<t:dgToolBar title="录入" icon="icon-add" url="waveToDownController.do?goAdd" funname="add"></t:dgToolBar>--%>
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="waveToDownController.do?goUpdate" funname="update"></t:dgToolBar>--%>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="waveToDownController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<%--<t:dgToolBar title="查看" icon="icon-search" url="waveToDownController.do?goUpdate" funname="detail"></t:dgToolBar>--%>
<t:dgToolBar title="查看" icon="icon-search" url="waveToDownController.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>--%>

View File

@ -0,0 +1,320 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>wave_to_fj</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="waveToFjController.do?doAdd" >
<input id="id" name="id" type="hidden" value="${waveToFjPage.id }"/>
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
创建人登录名称:
</label>
</td>
<td class="value">
<input id="createBy" name="createBy" 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="createName" name="createName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">创建人名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
货主:
</label>
</td>
<td class="value">
<input id="cusCode" name="cusCode" 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="cusName" name="cusName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">客户名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
到货通知单:
</label>
</td>
<td class="value">
<input id="omNoticeId" name="omNoticeId" 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="iomNoticeItem" name="iomNoticeItem" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">到货通知行项目</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
商品编码:
</label>
</td>
<td class="value">
<input id="goodsId" name="goodsId" 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="goodsName" name="goodsName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">商品名称</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
仓位:
</label>
</td>
<td class="value">
<input id="binId" name="binId" 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="tinId" name="tinId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">托盘</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
生产日期:
</label>
</td>
<td class="value">
<input id="proData" name="proData" 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">
baseGoodscount:
</label>
</td>
<td class="value">
<input id="baseGoodscount" name="baseGoodscount" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">baseGoodscount</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
基本单位:
</label>
</td>
<td class="value">
<input id="baseUnit" name="baseUnit" 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">
waveId:
</label>
</td>
<td class="value">
<input id="waveId" name="waveId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">waveId</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
firstRq:
</label>
</td>
<td class="value">
<input id="firstRq" name="firstRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">firstRq</label>
</td>
<td align="right">
<label class="Validform_label">
secondRq:
</label>
</td>
<td class="value">
<input id="secondRq" name="secondRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">secondRq</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by1:
</label>
</td>
<td class="value">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by1</label>
</td>
<td align="right">
<label class="Validform_label">
by2:
</label>
</td>
<td class="value">
<input id="by2" name="by2" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by2</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by3:
</label>
</td>
<td class="value">
<input id="by3" name="by3" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by3</label>
</td>
<td align="right">
<label class="Validform_label">
by4:
</label>
</td>
<td class="value">
<input id="by4" name="by4" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by4</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by5:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt"
datatype="*"
ignore="checked"
/>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by5</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wave/waveToFj.js"></script>

View File

@ -0,0 +1,299 @@
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>wave_to_fj</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
//编写自定义JS代码
</script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="waveToFjController.do?doUpdate" >
<input id="id" name="id" type="hidden" value="${waveToFjPage.id }">
<table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
<tr>
<td align="right">
<label class="Validform_label">
创建人登录名称:
</label>
</td>
<td class="value">
<input id="createBy" name="createBy" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.createBy}'>
<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="createName" name="createName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.createName}'>
<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="cusCode" name="cusCode" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.cusCode}'>
<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="cusName" name="cusName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.cusName}'>
<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="omNoticeId" name="omNoticeId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.omNoticeId}'>
<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="iomNoticeItem" name="iomNoticeItem" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.iomNoticeItem}'>
<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="goodsId" name="goodsId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.goodsId}'>
<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="goodsName" name="goodsName" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.goodsName}'>
<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="binId" name="binId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.binId}'>
<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="tinId" name="tinId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.tinId}'>
<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="proData" name="proData" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.proData}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">生产日期</label>
</td>
<td align="right">
<label class="Validform_label">
baseGoodscount:
</label>
</td>
<td class="value">
<input id="baseGoodscount" name="baseGoodscount" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.baseGoodscount}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">baseGoodscount</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
基本单位:
</label>
</td>
<td class="value">
<input id="baseUnit" name="baseUnit" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.baseUnit}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">基本单位</label>
</td>
<td align="right">
<label class="Validform_label">
waveId:
</label>
</td>
<td class="value">
<input id="waveId" name="waveId" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.waveId}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">waveId</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
firstRq:
</label>
</td>
<td class="value">
<input id="firstRq" name="firstRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.firstRq}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">firstRq</label>
</td>
<td align="right">
<label class="Validform_label">
secondRq:
</label>
</td>
<td class="value">
<input id="secondRq" name="secondRq" type="text" style="width: 150px" class="inputxt"
ignore="ignore"
value='${waveToFjPage.secondRq}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">secondRq</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by1:
</label>
</td>
<td class="value">
<input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToFjPage.by1}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by1</label>
</td>
<td align="right">
<label class="Validform_label">
by2:
</label>
</td>
<td class="value">
<input id="by2" name="by2" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToFjPage.by2}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by2</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by3:
</label>
</td>
<td class="value">
<input id="by3" name="by3" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToFjPage.by3}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by3</label>
</td>
<td align="right">
<label class="Validform_label">
by4:
</label>
</td>
<td class="value">
<input id="by4" name="by4" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToFjPage.by4}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by4</label>
</td>
</tr>
<tr>
<td align="right">
<label class="Validform_label">
by5:
</label>
</td>
<td class="value">
<input id="by5" name="by5" type="text" style="width: 150px" class="inputxt" datatype="*"
ignore="checked"
value='${waveToFjPage.by5}'>
<span class="Validform_checktip"></span>
<label class="Validform_label" style="display: none;">by5</label>
</td>
<td align="right">
<label class="Validform_label">
</label>
</td>
<td class="value">
</td>
</tr>
</table>
</t:formvalid>
</body>
<script src = "webpage/com/zzjee/wave/waveToFj.js"></script>

View File

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

View File

@ -0,0 +1,63 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="waveToFjList" checkbox="true" pagination="true" fitColumns="false" title="波次分拣" actionUrl="waveToFjController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人登录名称" field="createBy" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="创建人名称" field="createName" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="货主" field="cusCode" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="客户名称" field="cusName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="通知单" field="omNoticeId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="通知行项目" field="iomNoticeItem" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="商品编码" field="goodsId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="商品名称" field="goodsName" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="仓位" field="binId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="托盘" field="tinId" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="生产日期" field="proData" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="数量" field="baseGoodscount" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="基本单位" field="baseUnit" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="波次号" field="waveId" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="一次下架容器" field="firstRq" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="分拣容器" field="secondRq" query="true" queryMode="single" width="120"></t:dgCol>
<%--<t:dgCol title="by1" field="by1" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by2" field="by2" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by3" field="by3" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by4" field="by4" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="by5" field="by5" queryMode="group" width="120"></t:dgCol>--%>
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
<%--<t:dgDelOpt title="删除" url="waveToFjController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
<%--<t:dgToolBar title="录入" icon="icon-add" url="waveToFjController.do?goAdd" funname="add"></t:dgToolBar>--%>
<t:dgToolBar title="编辑" icon="icon-edit" url="waveToFjController.do?goUpdate" funname="update"></t:dgToolBar>
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="waveToFjController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
<%--<t:dgToolBar title="查看" icon="icon-search" url="waveToFjController.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/wave/waveToFjList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
});
//导入
function ImportXls() {
openuploadwin('Excel导入', 'waveToFjController.do?upload', "waveToFjList");
}
//导出
function ExportXls() {
JeecgExcelExport("waveToFjController.do?exportXls","waveToFjList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("waveToFjController.do?exportXlsByT","waveToFjList");
}
</script>