TMS
parent
513ba5868f
commit
6057839527
25
pom.xml
25
pom.xml
|
@ -937,6 +937,31 @@
|
|||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/jodconverter-3.0-beta-4-20170917.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- swagger start -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger2</artifactId>
|
||||
<version>2.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>2.5.1</version>
|
||||
</dependency>
|
||||
<!-- swagger end -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<organization>
|
||||
|
|
|
@ -147,7 +147,18 @@ public class TokenController {
|
|||
// 生成一个token,保存用户登录状态
|
||||
return new ResponseEntity(D0, HttpStatus.OK);
|
||||
}
|
||||
@RequestMapping(value = "/callback", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public ResponseEntity<?> callback(@RequestParam String devEui, @RequestParam String type, @RequestParam String obj) {
|
||||
logger.info("获取TOKEN[{}]" + devEui);
|
||||
ResultDO D0 = new ResultDO();
|
||||
|
||||
D0.setObj("");
|
||||
D0.setOK(true);
|
||||
|
||||
// 生成一个token,保存用户登录状态
|
||||
return new ResponseEntity(D0, HttpStatus.OK);
|
||||
}
|
||||
@RequestMapping(value = "/lighrcallback", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public ResponseEntity<?> lighrcallback(@RequestParam String devEui, @RequestParam String ctlLedStatus ) {
|
||||
|
|
|
@ -87,6 +87,7 @@ public class MdGoodsEntity implements java.io.Serializable {
|
|||
@Excel(name="计费商品类")
|
||||
private java.lang.String jfShpLei;
|
||||
/**商品品牌*/
|
||||
@Excel(name="商品品牌")
|
||||
private java.lang.String shpPinPai;
|
||||
/**商品条码*/
|
||||
@Excel(name="商品条码")
|
||||
|
|
|
@ -77,7 +77,17 @@ public class MvGoodsEntity implements java.io.Serializable {
|
|||
|
||||
@Excel(name="商品规格")
|
||||
private java.lang.String shpGuiGe;
|
||||
|
||||
/**商品品牌*/
|
||||
@Excel(name="商品品牌")
|
||||
private java.lang.String shpPinPai;
|
||||
@Excel(name="长")
|
||||
private java.lang.String chZhXiang;
|
||||
/**宽整箱*/
|
||||
@Excel(name="宽")
|
||||
private java.lang.String kuZhXiang;
|
||||
/**高整箱*/
|
||||
@Excel(name="高")
|
||||
private java.lang.String gaoZhXiang;
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
@ -347,4 +357,70 @@ public class MvGoodsEntity implements java.io.Serializable {
|
|||
public void setShpGuiGe(java.lang.String shpGuiGe){
|
||||
this.shpGuiGe = shpGuiGe;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 长整箱
|
||||
*/
|
||||
@Column(name ="CH_ZH_XIANG",nullable=true,length=32)
|
||||
public java.lang.String getChZhXiang(){
|
||||
return this.chZhXiang;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 长整箱
|
||||
*/
|
||||
public void setChZhXiang(java.lang.String chZhXiang){
|
||||
this.chZhXiang = chZhXiang;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 宽整箱
|
||||
*/
|
||||
@Column(name ="KU_ZH_XIANG",nullable=true,length=32)
|
||||
public java.lang.String getKuZhXiang(){
|
||||
return this.kuZhXiang;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 宽整箱
|
||||
*/
|
||||
public void setKuZhXiang(java.lang.String kuZhXiang){
|
||||
this.kuZhXiang = kuZhXiang;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 高整箱
|
||||
*/
|
||||
@Column(name ="GAO_ZH_XIANG",nullable=true,length=32)
|
||||
public java.lang.String getGaoZhXiang(){
|
||||
return this.gaoZhXiang;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 高整箱
|
||||
*/
|
||||
public void setGaoZhXiang(java.lang.String gaoZhXiang){
|
||||
this.gaoZhXiang = gaoZhXiang;
|
||||
}
|
||||
@Column(name ="SHP_PIN_PAI",nullable=true,length=35)
|
||||
public java.lang.String getShpPinPai(){
|
||||
return this.shpPinPai;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 商品品牌
|
||||
*/
|
||||
public void setShpPinPai(java.lang.String shpPinPai){
|
||||
this.shpPinPai = shpPinPai;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 商品条码
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -0,0 +1,416 @@
|
|||
package com.zzjee.tms.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.tms.entity.TmsMdCheliangEntity;
|
||||
import com.zzjee.tms.service.TmsMdCheliangServiceI;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jeecgframework.core.beanvalidator.BeanValidators;
|
||||
import org.jeecgframework.core.common.controller.BaseController;
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
||||
import org.jeecgframework.core.common.model.json.AjaxJson;
|
||||
import org.jeecgframework.core.common.model.json.DataGrid;
|
||||
import org.jeecgframework.core.constant.Globals;
|
||||
import org.jeecgframework.core.util.ExceptionUtil;
|
||||
import org.jeecgframework.core.util.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.ResourceUtil;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
import org.jeecgframework.jwt.util.ResponseMessage;
|
||||
import org.jeecgframework.jwt.util.Result;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
||||
import org.jeecgframework.tag.core.easyui.TagUtil;
|
||||
import org.jeecgframework.web.system.pojo.base.TSUser;
|
||||
import org.jeecgframework.web.system.service.SystemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: 车辆管理
|
||||
* @author onlineGenerator
|
||||
* @date 2018-01-29 21:57:07
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Api(value="TmsMdCheliang",description="车辆管理",tags="tmsMdCheliangController")
|
||||
@Controller
|
||||
@RequestMapping("/tmsMdCheliangController")
|
||||
public class TmsMdCheliangController extends BaseController {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(TmsMdCheliangController.class);
|
||||
|
||||
@Autowired
|
||||
private TmsMdCheliangServiceI tmsMdCheliangService;
|
||||
@Autowired
|
||||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 车辆管理列表 页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "list")
|
||||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdCheliangList");
|
||||
}
|
||||
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @param dataGrid
|
||||
* @param user
|
||||
*/
|
||||
|
||||
@RequestMapping(params = "datagrid")
|
||||
public void datagrid(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsMdCheliangEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsMdCheliang, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("createBy",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
cq.add();
|
||||
this.tmsMdCheliangService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆管理
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doDel(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsMdCheliang = systemService.getEntity(TmsMdCheliangEntity.class, tmsMdCheliang.getId());
|
||||
message = "车辆管理删除成功";
|
||||
try{
|
||||
tmsMdCheliang.setZhuangtai("N");
|
||||
tmsMdCheliangService.updateEntitie(tmsMdCheliang);
|
||||
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(",")){
|
||||
TmsMdCheliangEntity tmsMdCheliang = systemService.getEntity(TmsMdCheliangEntity.class,
|
||||
id
|
||||
);
|
||||
tmsMdCheliang.setZhuangtai("N");
|
||||
tmsMdCheliangService.updateEntitie(tmsMdCheliang);
|
||||
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(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "车辆管理添加成功";
|
||||
try{
|
||||
tmsMdCheliangService.save(tmsMdCheliang);
|
||||
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(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "车辆管理更新成功";
|
||||
TmsMdCheliangEntity t = tmsMdCheliangService.get(TmsMdCheliangEntity.class, tmsMdCheliang.getId());
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(tmsMdCheliang, t);
|
||||
tmsMdCheliangService.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(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsMdCheliang.getId())) {
|
||||
tmsMdCheliang = tmsMdCheliangService.getEntity(TmsMdCheliangEntity.class, tmsMdCheliang.getId());
|
||||
req.setAttribute("tmsMdCheliangPage", tmsMdCheliang);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdCheliang-add");
|
||||
}
|
||||
/**
|
||||
* 车辆管理编辑页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goUpdate")
|
||||
public ModelAndView goUpdate(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsMdCheliang.getId())) {
|
||||
tmsMdCheliang = tmsMdCheliangService.getEntity(TmsMdCheliangEntity.class, tmsMdCheliang.getId());
|
||||
req.setAttribute("tmsMdCheliangPage", tmsMdCheliang);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdCheliang-update");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "upload")
|
||||
public ModelAndView upload(HttpServletRequest req) {
|
||||
req.setAttribute("controller_name","tmsMdCheliangController");
|
||||
return new ModelAndView("common/upload/pub_excel_upload");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXls")
|
||||
public String exportXls(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsMdCheliangEntity.class, dataGrid);
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsMdCheliang, request.getParameterMap());
|
||||
List<TmsMdCheliangEntity> tmsMdCheliangs = this.tmsMdCheliangService.getListByCriteriaQuery(cq,false);
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"车辆管理");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsMdCheliangEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("车辆管理列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,tmsMdCheliangs);
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXlsByT")
|
||||
public String exportXlsByT(TmsMdCheliangEntity tmsMdCheliang, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"车辆管理");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsMdCheliangEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("车辆管理列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
AjaxJson j = new AjaxJson();
|
||||
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
||||
ImportParams params = new ImportParams();
|
||||
params.setTitleRows(2);
|
||||
params.setHeadRows(1);
|
||||
params.setNeedSave(true);
|
||||
try {
|
||||
List<TmsMdCheliangEntity> listTmsMdCheliangEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TmsMdCheliangEntity.class,params);
|
||||
for (TmsMdCheliangEntity tmsMdCheliang : listTmsMdCheliangEntitys) {
|
||||
tmsMdCheliangService.save(tmsMdCheliang);
|
||||
}
|
||||
j.setMsg("文件导入成功!");
|
||||
} catch (Exception e) {
|
||||
j.setMsg("文件导入失败!");
|
||||
logger.error(ExceptionUtil.getExceptionMessage(e));
|
||||
}finally{
|
||||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="车辆管理列表信息",produces="application/json",httpMethod="GET")
|
||||
public ResponseMessage<List<TmsMdCheliangEntity>> list() {
|
||||
List<TmsMdCheliangEntity> listTmsMdCheliangs=tmsMdCheliangService.getList(TmsMdCheliangEntity.class);
|
||||
return Result.success(listTmsMdCheliangs);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="根据ID获取车辆管理信息",notes="根据ID获取车辆管理信息",httpMethod="GET",produces="application/json")
|
||||
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
|
||||
TmsMdCheliangEntity task = tmsMdCheliangService.get(TmsMdCheliangEntity.class, id);
|
||||
if (task == null) {
|
||||
return Result.error("根据ID获取车辆管理信息为空");
|
||||
}
|
||||
return Result.success(task);
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="创建车辆管理")
|
||||
public ResponseMessage<?> create(@ApiParam(name="车辆管理对象")@RequestBody TmsMdCheliangEntity tmsMdCheliang, UriComponentsBuilder uriBuilder) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsMdCheliangEntity>> failures = validator.validate(tmsMdCheliang);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsMdCheliangService.save(tmsMdCheliang);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("车辆管理信息保存失败");
|
||||
}
|
||||
return Result.success(tmsMdCheliang);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="更新车辆管理",notes="更新车辆管理")
|
||||
public ResponseMessage<?> update(@ApiParam(name="车辆管理对象")@RequestBody TmsMdCheliangEntity tmsMdCheliang) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsMdCheliangEntity>> failures = validator.validate(tmsMdCheliang);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsMdCheliangService.saveOrUpdate(tmsMdCheliang);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("更新车辆管理信息失败");
|
||||
}
|
||||
|
||||
//按Restful约定,返回204状态码, 无内容. 也可以返回200状态码.
|
||||
return Result.success("更新车辆管理信息成功");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||
@ApiOperation(value="删除车辆管理")
|
||||
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
|
||||
logger.info("delete[{}]" + id);
|
||||
// 验证
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
return Result.error("ID不能为空");
|
||||
}
|
||||
try {
|
||||
tmsMdCheliangService.deleteEntityById(TmsMdCheliangEntity.class, id);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("车辆管理删除失败");
|
||||
}
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,443 @@
|
|||
package com.zzjee.tms.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.tms.entity.TmsMdDzEntity;
|
||||
import com.zzjee.tms.service.TmsMdDzServiceI;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jeecgframework.core.beanvalidator.BeanValidators;
|
||||
import org.jeecgframework.core.common.controller.BaseController;
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
||||
import org.jeecgframework.core.common.model.json.AjaxJson;
|
||||
import org.jeecgframework.core.common.model.json.DataGrid;
|
||||
import org.jeecgframework.core.constant.Globals;
|
||||
import org.jeecgframework.core.util.ExceptionUtil;
|
||||
import org.jeecgframework.core.util.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.ResourceUtil;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
import org.jeecgframework.jwt.util.ResponseMessage;
|
||||
import org.jeecgframework.jwt.util.Result;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
||||
import org.jeecgframework.tag.core.easyui.TagUtil;
|
||||
import org.jeecgframework.web.system.pojo.base.TSUser;
|
||||
import org.jeecgframework.web.system.service.SystemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: 客户地址
|
||||
* @author onlineGenerator
|
||||
* @date 2018-01-29 21:57:16
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Api(value="TmsMdDz",description="客户地址",tags="tmsMdDzController")
|
||||
@Controller
|
||||
@RequestMapping("/tmsMdDzController")
|
||||
public class TmsMdDzController extends BaseController {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(TmsMdDzController.class);
|
||||
|
||||
@Autowired
|
||||
private TmsMdDzServiceI tmsMdDzService;
|
||||
@Autowired
|
||||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 客户地址列表 页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "list")
|
||||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdDzList");
|
||||
}
|
||||
@RequestMapping(params = "listchoose")
|
||||
public ModelAndView listchoose(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdDzChoose");
|
||||
}
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @param dataGrid
|
||||
* @param user
|
||||
*/
|
||||
|
||||
@RequestMapping(params = "datagrid")
|
||||
public void datagrid(TmsMdDzEntity tmsMdDz, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsMdDzEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsMdDz, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("username",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
cq.add();
|
||||
this.tmsMdDzService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
@RequestMapping(params = "datagridchoose")
|
||||
public void datagridchoose(TmsMdDzEntity tmsMdDz, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsMdDzEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsMdDz, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("username",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
cq.add();
|
||||
this.tmsMdDzService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
/**
|
||||
* 删除客户地址
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doDel(TmsMdDzEntity tmsMdDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsMdDz = systemService.getEntity(TmsMdDzEntity.class, tmsMdDz.getId());
|
||||
message = "客户地址删除成功";
|
||||
try{
|
||||
tmsMdDz.setZhuangtai("N");
|
||||
tmsMdDzService.updateEntitie(tmsMdDz);
|
||||
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(",")){
|
||||
TmsMdDzEntity tmsMdDz = systemService.getEntity(TmsMdDzEntity.class,
|
||||
id
|
||||
);
|
||||
tmsMdDz.setZhuangtai("N");
|
||||
tmsMdDzService.updateEntitie(tmsMdDz);
|
||||
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(TmsMdDzEntity tmsMdDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "客户地址添加成功";
|
||||
try{
|
||||
tmsMdDzService.save(tmsMdDz);
|
||||
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(TmsMdDzEntity tmsMdDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "客户地址更新成功";
|
||||
TmsMdDzEntity t = tmsMdDzService.get(TmsMdDzEntity.class, tmsMdDz.getId());
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(tmsMdDz, t);
|
||||
tmsMdDzService.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(TmsMdDzEntity tmsMdDz, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsMdDz.getId())) {
|
||||
tmsMdDz = tmsMdDzService.getEntity(TmsMdDzEntity.class, tmsMdDz.getId());
|
||||
req.setAttribute("tmsMdDzPage", tmsMdDz);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdDz-add");
|
||||
}
|
||||
/**
|
||||
* 客户地址编辑页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goUpdate")
|
||||
public ModelAndView goUpdate(TmsMdDzEntity tmsMdDz, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsMdDz.getId())) {
|
||||
tmsMdDz = tmsMdDzService.getEntity(TmsMdDzEntity.class, tmsMdDz.getId());
|
||||
req.setAttribute("tmsMdDzPage", tmsMdDz);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsMdDz-update");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "upload")
|
||||
public ModelAndView upload(HttpServletRequest req) {
|
||||
req.setAttribute("controller_name","tmsMdDzController");
|
||||
return new ModelAndView("common/upload/pub_excel_upload");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXls")
|
||||
public String exportXls(TmsMdDzEntity tmsMdDz, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsMdDzEntity.class, dataGrid);
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsMdDz, request.getParameterMap());
|
||||
List<TmsMdDzEntity> tmsMdDzs = this.tmsMdDzService.getListByCriteriaQuery(cq,false);
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"客户地址");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsMdDzEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("客户地址列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,tmsMdDzs);
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXlsByT")
|
||||
public String exportXlsByT(TmsMdDzEntity tmsMdDz, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"客户地址");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsMdDzEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("客户地址列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
AjaxJson j = new AjaxJson();
|
||||
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
||||
ImportParams params = new ImportParams();
|
||||
params.setTitleRows(2);
|
||||
params.setHeadRows(1);
|
||||
params.setNeedSave(true);
|
||||
try {
|
||||
List<TmsMdDzEntity> listTmsMdDzEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TmsMdDzEntity.class,params);
|
||||
for (TmsMdDzEntity tmsMdDz : listTmsMdDzEntitys) {
|
||||
tmsMdDzService.save(tmsMdDz);
|
||||
}
|
||||
j.setMsg("文件导入成功!");
|
||||
} catch (Exception e) {
|
||||
j.setMsg("文件导入失败!");
|
||||
logger.error(ExceptionUtil.getExceptionMessage(e));
|
||||
}finally{
|
||||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="客户地址列表信息",produces="application/json",httpMethod="GET")
|
||||
public ResponseMessage<List<TmsMdDzEntity>> list() {
|
||||
List<TmsMdDzEntity> listTmsMdDzs=tmsMdDzService.getList(TmsMdDzEntity.class);
|
||||
return Result.success(listTmsMdDzs);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="根据ID获取客户地址信息",notes="根据ID获取客户地址信息",httpMethod="GET",produces="application/json")
|
||||
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
|
||||
TmsMdDzEntity task = tmsMdDzService.get(TmsMdDzEntity.class, id);
|
||||
if (task == null) {
|
||||
return Result.error("根据ID获取客户地址信息为空");
|
||||
}
|
||||
return Result.success(task);
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="创建客户地址")
|
||||
public ResponseMessage<?> create(@ApiParam(name="客户地址对象")@RequestBody TmsMdDzEntity tmsMdDz, UriComponentsBuilder uriBuilder) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsMdDzEntity>> failures = validator.validate(tmsMdDz);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsMdDzService.save(tmsMdDz);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("客户地址信息保存失败");
|
||||
}
|
||||
return Result.success(tmsMdDz);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="更新客户地址",notes="更新客户地址")
|
||||
public ResponseMessage<?> update(@ApiParam(name="客户地址对象")@RequestBody TmsMdDzEntity tmsMdDz) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsMdDzEntity>> failures = validator.validate(tmsMdDz);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsMdDzService.saveOrUpdate(tmsMdDz);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("更新客户地址信息失败");
|
||||
}
|
||||
|
||||
//按Restful约定,返回204状态码, 无内容. 也可以返回200状态码.
|
||||
return Result.success("更新客户地址信息成功");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||
@ApiOperation(value="删除客户地址")
|
||||
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
|
||||
logger.info("delete[{}]" + id);
|
||||
// 验证
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
return Result.error("ID不能为空");
|
||||
}
|
||||
try {
|
||||
tmsMdDzService.deleteEntityById(TmsMdDzEntity.class, id);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("客户地址删除失败");
|
||||
}
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,946 @@
|
|||
package com.zzjee.tms.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.tms.entity.DdPage;
|
||||
import com.zzjee.tms.entity.TmsMdDzEntity;
|
||||
import com.zzjee.tms.entity.TmsYwDingdanEntity;
|
||||
import com.zzjee.tms.service.TmsYwDingdanServiceI;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jeecgframework.core.beanvalidator.BeanValidators;
|
||||
import org.jeecgframework.core.common.controller.BaseController;
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
||||
import org.jeecgframework.core.common.model.json.AjaxJson;
|
||||
import org.jeecgframework.core.common.model.json.DataGrid;
|
||||
import org.jeecgframework.core.constant.Globals;
|
||||
import org.jeecgframework.core.util.*;
|
||||
import org.jeecgframework.jwt.util.ResponseMessage;
|
||||
import org.jeecgframework.jwt.util.Result;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
||||
import org.jeecgframework.tag.core.easyui.TagUtil;
|
||||
import org.jeecgframework.web.cgform.entity.upload.CgUploadEntity;
|
||||
import org.jeecgframework.web.cgform.service.config.CgFormFieldServiceI;
|
||||
import org.jeecgframework.web.system.pojo.base.TSUser;
|
||||
import org.jeecgframework.web.system.service.SystemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
import static com.xiaoleilu.hutool.date.DateUtil.now;
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: 运输订单
|
||||
* @author onlineGenerator
|
||||
* @date 2018-01-29 21:57:25
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Api(value="TmsYwDingdan",description="运输订单",tags="tmsYwDingdanController")
|
||||
@Controller
|
||||
@RequestMapping("/tmsYwDingdanController")
|
||||
public class TmsYwDingdanController extends BaseController {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(TmsYwDingdanController.class);
|
||||
|
||||
@Autowired
|
||||
private TmsYwDingdanServiceI tmsYwDingdanService;
|
||||
@Autowired
|
||||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
@Autowired
|
||||
private CgFormFieldServiceI cgFormFieldService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 运输订单列表 页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "list")
|
||||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanList");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 运输订单列表 页面跳转 派车
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "listpc")
|
||||
public ModelAndView listpc(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanpcList");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 运输订单列表 页面跳转 装车
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "listzc")
|
||||
public ModelAndView listzc(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanzcList");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 运输订单列表 页面跳转 回单
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "listhd")
|
||||
public ModelAndView listhd(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanhdList");
|
||||
}
|
||||
|
||||
/**
|
||||
* 运输订单列表 页面跳转 回单
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "listjs")
|
||||
public ModelAndView listjs(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanjsList");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @param dataGrid
|
||||
*/
|
||||
|
||||
@RequestMapping(params = "datagrid")
|
||||
public void datagrid(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
String query_sdsj_begin = request.getParameter("sdsj_begin");
|
||||
String query_sdsj_end = request.getParameter("sdsj_end");
|
||||
if(StringUtil.isNotEmpty(query_sdsj_begin)){
|
||||
cq.ge("sdsj", Integer.parseInt(query_sdsj_begin));
|
||||
}
|
||||
if(StringUtil.isNotEmpty(query_sdsj_end)){
|
||||
cq.le("sdsj", Integer.parseInt(query_sdsj_end));
|
||||
}
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
cq.eq("zhuangtai","已下单");
|
||||
// cq.notEq("zhuangtai","已派车");
|
||||
// cq.notEq("zhuangtai","已装车");
|
||||
|
||||
cq.add();
|
||||
this.tmsYwDingdanService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(params = "datagridpc")
|
||||
public void datagridpc(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
String query_sdsj_begin = request.getParameter("sdsj_begin");
|
||||
String query_sdsj_end = request.getParameter("sdsj_end");
|
||||
if(StringUtil.isNotEmpty(query_sdsj_begin)){
|
||||
cq.ge("sdsj", Integer.parseInt(query_sdsj_begin));
|
||||
}
|
||||
if(StringUtil.isNotEmpty(query_sdsj_end)){
|
||||
cq.le("sdsj", Integer.parseInt(query_sdsj_end));
|
||||
}
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.eq("zhuangtai","已下单");
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("username",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
cq.add();
|
||||
this.tmsYwDingdanService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
@RequestMapping(params = "datagridzc")
|
||||
public void datagridzc(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
String query_sdsj_begin = request.getParameter("sdsj_begin");
|
||||
String query_sdsj_end = request.getParameter("sdsj_end");
|
||||
if(StringUtil.isNotEmpty(query_sdsj_begin)){
|
||||
cq.ge("sdsj", Integer.parseInt(query_sdsj_begin));
|
||||
}
|
||||
if(StringUtil.isNotEmpty(query_sdsj_end)){
|
||||
cq.le("sdsj", Integer.parseInt(query_sdsj_end));
|
||||
}
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.eq("zhuangtai","已派车");
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
// if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
// cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
//
|
||||
// }
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("siji",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
// if(!StringUtil.isEmpty(user.getUserType())){
|
||||
// if(user.getUserType().equals("4")){
|
||||
// cq.eq("username",user.getUserName());
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
cq.add();
|
||||
this.tmsYwDingdanService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
@RequestMapping(params = "datagridhd")
|
||||
public void datagridhd(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
String query_sdsj_begin = request.getParameter("sdsj_begin");
|
||||
String query_sdsj_end = request.getParameter("sdsj_end");
|
||||
if(StringUtil.isNotEmpty(query_sdsj_begin)){
|
||||
cq.ge("sdsj", Integer.parseInt(query_sdsj_begin));
|
||||
}
|
||||
if(StringUtil.isNotEmpty(query_sdsj_end)){
|
||||
cq.le("sdsj", Integer.parseInt(query_sdsj_end));
|
||||
}
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.eq("zhuangtai","已装车");
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
cq.eq("username",user.getUserName());
|
||||
}
|
||||
|
||||
}
|
||||
cq.add();
|
||||
this.tmsYwDingdanService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
@RequestMapping(params = "datagridjs")
|
||||
public void datagridjs(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
String query_sdsj_begin = request.getParameter("sdsj_begin");
|
||||
String query_sdsj_end = request.getParameter("sdsj_end");
|
||||
if(StringUtil.isNotEmpty(query_sdsj_begin)){
|
||||
cq.ge("sdsj", Integer.parseInt(query_sdsj_begin));
|
||||
}
|
||||
if(StringUtil.isNotEmpty(query_sdsj_end)){
|
||||
cq.le("sdsj", Integer.parseInt(query_sdsj_end));
|
||||
}
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.eq("zhuangtai","已回单");
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
if(!StringUtil.isEmpty(user.getCurrentDepart().getOrgCode())){
|
||||
cq.like("sysOrgCode",user.getCurrentDepart().getOrgCode()+"%");
|
||||
|
||||
}
|
||||
// if(!StringUtil.isEmpty(user.getUserType())){
|
||||
// if(user.getUserType().equals("4")){
|
||||
// cq.eq("username",user.getUserName());
|
||||
// }
|
||||
//
|
||||
// }
|
||||
cq.add();
|
||||
this.tmsYwDingdanService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 保存新增/更新的行数据
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "saveRows")
|
||||
@ResponseBody
|
||||
public AjaxJson saveRows(DdPage page){
|
||||
String message = null;
|
||||
List<TmsYwDingdanEntity> demos=page.getDemos();
|
||||
AjaxJson j = new AjaxJson();
|
||||
if(CollectionUtils.isNotEmpty(demos)){
|
||||
for(TmsYwDingdanEntity jeecgDemo:demos){
|
||||
if (StringUtil.isNotEmpty(jeecgDemo.getId())) {
|
||||
TmsYwDingdanEntity t =tmsYwDingdanService.get(TmsYwDingdanEntity.class, jeecgDemo.getId());
|
||||
try {
|
||||
message = jeecgDemo.getId()+ "被更新成功";
|
||||
MyBeanUtils.copyBeanNotNull2Bean(jeecgDemo, t);
|
||||
if(StringUtil.isEmpty(t.getYjsdsj())){
|
||||
t.setYjsdsj(now());
|
||||
}
|
||||
t.setZhuangtai("已回单");
|
||||
t.setSdsj(now());
|
||||
tmsYwDingdanService.saveOrUpdate(t);
|
||||
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运输订单
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doDel(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
message = "运输订单删除成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已删除");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "运输订单删除失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(params = "dopc")
|
||||
@ResponseBody
|
||||
public AjaxJson dopc(String id, String siji, String chehao, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
TmsYwDingdanEntity tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, id);
|
||||
message = "运输订单派车成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已派车");
|
||||
tmsYwDingdan.setSiji(siji);
|
||||
tmsYwDingdan.setChehao(chehao);
|
||||
// tmsYwDingdan.setYjsdsj(DateUtils.str2Date(yjsdsj,DateUtils.datetimeFormat));
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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 = "doDelpc")
|
||||
@ResponseBody
|
||||
public AjaxJson doDelpc(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
message = "运输订单取消派车成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已下单");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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 = "dozc")
|
||||
@ResponseBody
|
||||
public AjaxJson dozc(String id, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
TmsYwDingdanEntity tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, id);
|
||||
message = "运输订单装车成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已装车");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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 = "doDelzc")
|
||||
@ResponseBody
|
||||
public AjaxJson doDelzc(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
message = "运输订单取消装车成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已派车");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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 = "doDelhd")
|
||||
@ResponseBody
|
||||
public AjaxJson doDelhd(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
message = "运输订单取消回单成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已装车");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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 = "doDeljs")
|
||||
@ResponseBody
|
||||
public AjaxJson doDeljs(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
message = "运输订单取消结算成功";
|
||||
try{
|
||||
tmsYwDingdan.setZhuangtai("已回单");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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(",")){
|
||||
TmsYwDingdanEntity tmsYwDingdan = systemService.getEntity(TmsYwDingdanEntity.class,
|
||||
id
|
||||
);
|
||||
tmsYwDingdan.setZhuangtai("已删除");
|
||||
tmsYwDingdanService.updateEntitie(tmsYwDingdan);
|
||||
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(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "运输订单添加成功";
|
||||
try{
|
||||
Map<String, Object> countMap = systemService
|
||||
.findOneForJdbc("SELECT count(*)+1 as count FROM tms_yw_dingdan t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
|
||||
String noticeid = null;
|
||||
if (countMap != null) {
|
||||
|
||||
noticeid = DateUtils.date2Str(new Date(), DateUtils.yyyyMMdd)
|
||||
+ StringUtil.leftPad(
|
||||
((Long) countMap.get("count")).intValue(), 4,
|
||||
'0');
|
||||
}
|
||||
tmsYwDingdan.setFadh(noticeid);
|
||||
// try{
|
||||
// if(StringUtil.isEmpty(tmsYwDingdan.getUsername())){
|
||||
// TmsMdDzEntity tmsdz = new TmsMdDzEntity();
|
||||
// tmsdz.setUsername(ResourceUtil.getSessionUser().getUserName());
|
||||
// tmsdz.setLianxiren(tmsYwDingdan.getFahuoren());
|
||||
// tmsdz.setDianhua(tmsYwDingdan.getFhrdh());
|
||||
// tmsdz.setXiangxidizhi(tmsYwDingdan.getFhrdz());
|
||||
// systemService.save(tmsdz);
|
||||
// TmsMdDzEntity tmsdzs = new TmsMdDzEntity();
|
||||
// tmsdzs.setUsername(ResourceUtil.getSessionUser().getUserName());
|
||||
// tmsdzs.setLianxiren(tmsYwDingdan.getShouhuoren());
|
||||
// tmsdzs.setDianhua(tmsYwDingdan.getShrsj());
|
||||
// tmsdzs.setXiangxidizhi(tmsYwDingdan.getShrdh());
|
||||
// systemService.save(tmsdzs);
|
||||
// }
|
||||
// }catch (Exception e){
|
||||
//
|
||||
// }
|
||||
try{
|
||||
if(StringUtil.isNotEmpty(tmsYwDingdan.getFahuoren())){
|
||||
String sfhr[];
|
||||
sfhr = StringUtil.splitString(tmsYwDingdan.getFahuoren(),"-");
|
||||
if(sfhr.length==4){
|
||||
tmsYwDingdan.setUsername(sfhr[0]);
|
||||
tmsYwDingdan.setFahuoren(sfhr[1]);
|
||||
tmsYwDingdan.setFhrdh(sfhr[2]);
|
||||
tmsYwDingdan.setFhrdz(sfhr[3]);
|
||||
}
|
||||
if(sfhr.length==3){
|
||||
|
||||
tmsYwDingdan.setFahuoren(sfhr[0]);
|
||||
tmsYwDingdan.setFhrdh(sfhr[1]);
|
||||
tmsYwDingdan.setFhrdz(sfhr[2]);
|
||||
TmsMdDzEntity tmsdz = new TmsMdDzEntity();
|
||||
tmsdz.setUsername(ResourceUtil.getSessionUser().getUserName());
|
||||
tmsdz.setLianxiren(tmsYwDingdan.getFahuoren());
|
||||
tmsdz.setDianhua(tmsYwDingdan.getFhrdh());
|
||||
tmsdz.setXiangxidizhi(tmsYwDingdan.getFhrdz());
|
||||
systemService.save(tmsdz);
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
try{
|
||||
if(StringUtil.isNotEmpty(tmsYwDingdan.getShouhuoren())){
|
||||
String sshr[];
|
||||
sshr = StringUtil.splitString(tmsYwDingdan.getShouhuoren(),"-");
|
||||
if(sshr.length==4){
|
||||
tmsYwDingdan.setShouhuoren(sshr[1]);
|
||||
tmsYwDingdan.setShrsj(sshr[2]);
|
||||
tmsYwDingdan.setShrdh(sshr[3]);
|
||||
}
|
||||
if(sshr.length==3){
|
||||
tmsYwDingdan.setShouhuoren(sshr[0]);
|
||||
tmsYwDingdan.setShrsj(sshr[1]);
|
||||
tmsYwDingdan.setShrdh(sshr[2]);
|
||||
TmsMdDzEntity tmsdzs = new TmsMdDzEntity();
|
||||
tmsdzs.setUsername(ResourceUtil.getSessionUser().getUserName());
|
||||
tmsdzs.setLianxiren(tmsYwDingdan.getShouhuoren());
|
||||
tmsdzs.setDianhua(tmsYwDingdan.getShrsj());
|
||||
tmsdzs.setXiangxidizhi(tmsYwDingdan.getShrdh());
|
||||
systemService.save(tmsdzs);
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
GregorianCalendar ca = new GregorianCalendar();
|
||||
if(ca.get(GregorianCalendar.AM_PM) == 0){
|
||||
tmsYwDingdan.setBy1("上午");
|
||||
}else{
|
||||
tmsYwDingdan.setBy1("下午");
|
||||
}
|
||||
tmsYwDingdanService.save(tmsYwDingdan);
|
||||
|
||||
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);
|
||||
j.setObj(tmsYwDingdan);
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新运输订单
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doUpdate")
|
||||
@ResponseBody
|
||||
public AjaxJson doUpdate(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "运输订单更新成功";
|
||||
TmsYwDingdanEntity t = tmsYwDingdanService.get(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(tmsYwDingdan, t);
|
||||
tmsYwDingdanService.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(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsYwDingdan.getId())) {
|
||||
tmsYwDingdan = tmsYwDingdanService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
// req.setAttribute("tmsYwDingdanPage", tmsYwDingdan);
|
||||
}
|
||||
TSUser user = ResourceUtil.getSessionUser();
|
||||
|
||||
if(!StringUtil.isEmpty(user.getUserType())){
|
||||
if(user.getUserType().equals("4")){
|
||||
tmsYwDingdan.setUsername(user.getUserName());
|
||||
tmsYwDingdan.setXdrmz(user.getRealName());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
req.setAttribute("tmsYwDingdanPage", tmsYwDingdan);
|
||||
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdan-add");
|
||||
}
|
||||
/**
|
||||
* 运输订单编辑页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goUpdate")
|
||||
public ModelAndView goUpdate(TmsYwDingdanEntity tmsYwDingdan, String id, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsYwDingdan.getId())|| StringUtil.isNotEmpty(id)){
|
||||
if(StringUtil.isNotEmpty(id)){
|
||||
tmsYwDingdan.setId(id);
|
||||
}
|
||||
tmsYwDingdan = tmsYwDingdanService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
req.setAttribute("tmsYwDingdanPage", tmsYwDingdan);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdan-update");
|
||||
}
|
||||
|
||||
@RequestMapping(params = "goUpdatehd")
|
||||
public ModelAndView goUpdatehd(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsYwDingdan.getId())) {
|
||||
tmsYwDingdan = tmsYwDingdanService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
// tmsYwDingdan.setZhuangtai("已回单");
|
||||
req.setAttribute("tmsYwDingdanPage", tmsYwDingdan);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanhd-update");
|
||||
}
|
||||
@RequestMapping(params = "goUpdatejs")
|
||||
public ModelAndView goUpdatejs(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(tmsYwDingdan.getId())) {
|
||||
tmsYwDingdan = tmsYwDingdanService.getEntity(TmsYwDingdanEntity.class, tmsYwDingdan.getId());
|
||||
// tmsYwDingdan.setZhuangtai("已回单");
|
||||
req.setAttribute("tmsYwDingdanPage", tmsYwDingdan);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/tmsYwDingdanjs-update");
|
||||
}
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "upload")
|
||||
public ModelAndView upload(HttpServletRequest req) {
|
||||
req.setAttribute("controller_name","tmsYwDingdanController");
|
||||
return new ModelAndView("common/upload/pub_excel_upload");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXls")
|
||||
public String exportXls(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
CriteriaQuery cq = new CriteriaQuery(TmsYwDingdanEntity.class, dataGrid);
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, tmsYwDingdan, request.getParameterMap());
|
||||
List<TmsYwDingdanEntity> tmsYwDingdans = this.tmsYwDingdanService.getListByCriteriaQuery(cq,false);
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"运输订单");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsYwDingdanEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("运输订单列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,tmsYwDingdans);
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXlsByT")
|
||||
public String exportXlsByT(TmsYwDingdanEntity tmsYwDingdan, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"运输订单");
|
||||
modelMap.put(NormalExcelConstants.CLASS,TmsYwDingdanEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("运输订单列表", "导出人:"+ ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
AjaxJson j = new AjaxJson();
|
||||
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
||||
ImportParams params = new ImportParams();
|
||||
params.setTitleRows(2);
|
||||
params.setHeadRows(1);
|
||||
params.setNeedSave(true);
|
||||
try {
|
||||
List<TmsYwDingdanEntity> listTmsYwDingdanEntitys = ExcelImportUtil.importExcel(file.getInputStream(),TmsYwDingdanEntity.class,params);
|
||||
for (TmsYwDingdanEntity tmsYwDingdan : listTmsYwDingdanEntitys) {
|
||||
tmsYwDingdanService.save(tmsYwDingdan);
|
||||
}
|
||||
j.setMsg("文件导入成功!");
|
||||
} catch (Exception e) {
|
||||
j.setMsg("文件导入失败!");
|
||||
logger.error(ExceptionUtil.getExceptionMessage(e));
|
||||
}finally{
|
||||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件附件信息
|
||||
*
|
||||
* @param id tmsYwDingdan主键id
|
||||
*/
|
||||
@RequestMapping(params = "getFiles")
|
||||
@ResponseBody
|
||||
public AjaxJson getFiles(String id){
|
||||
List<CgUploadEntity> uploadBeans = cgFormFieldService.findByProperty(CgUploadEntity.class, "cgformId", id);
|
||||
List<Map<String,Object>> files = new ArrayList<Map<String,Object>>(0);
|
||||
for(CgUploadEntity b:uploadBeans){
|
||||
String title = b.getAttachmenttitle();//附件名
|
||||
String fileKey = b.getId();//附件主键
|
||||
String path = b.getRealpath();//附件路径
|
||||
String field = b.getCgformField();//表单中作为附件控件的字段
|
||||
Map<String, Object> file = new HashMap<String, Object>();
|
||||
file.put("title", title);
|
||||
file.put("fileKey", fileKey);
|
||||
file.put("path", path);
|
||||
file.put("field", field==null?"":field);
|
||||
files.add(file);
|
||||
}
|
||||
AjaxJson j = new AjaxJson();
|
||||
j.setObj(files);
|
||||
return j;
|
||||
}
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="运输订单列表信息",produces="application/json",httpMethod="GET")
|
||||
public ResponseMessage<List<TmsYwDingdanEntity>> list() {
|
||||
List<TmsYwDingdanEntity> listTmsYwDingdans=tmsYwDingdanService.getList(TmsYwDingdanEntity.class);
|
||||
return Result.success(listTmsYwDingdans);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="根据ID获取运输订单信息",notes="根据ID获取运输订单信息",httpMethod="GET",produces="application/json")
|
||||
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
|
||||
TmsYwDingdanEntity task = tmsYwDingdanService.get(TmsYwDingdanEntity.class, id);
|
||||
if (task == null) {
|
||||
return Result.error("根据ID获取运输订单信息为空");
|
||||
}
|
||||
return Result.success(task);
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="创建运输订单")
|
||||
public ResponseMessage<?> create(@ApiParam(name="运输订单对象")@RequestBody TmsYwDingdanEntity tmsYwDingdan, UriComponentsBuilder uriBuilder) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsYwDingdanEntity>> failures = validator.validate(tmsYwDingdan);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsYwDingdanService.save(tmsYwDingdan);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("运输订单信息保存失败");
|
||||
}
|
||||
return Result.success(tmsYwDingdan);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="更新运输订单",notes="更新运输订单")
|
||||
public ResponseMessage<?> update(@ApiParam(name="运输订单对象")@RequestBody TmsYwDingdanEntity tmsYwDingdan) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<TmsYwDingdanEntity>> failures = validator.validate(tmsYwDingdan);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
tmsYwDingdanService.saveOrUpdate(tmsYwDingdan);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("更新运输订单信息失败");
|
||||
}
|
||||
|
||||
//按Restful约定,返回204状态码, 无内容. 也可以返回200状态码.
|
||||
return Result.success("更新运输订单信息成功");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||
@ApiOperation(value="删除运输订单")
|
||||
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
|
||||
logger.info("delete[{}]" + id);
|
||||
// 验证
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
return Result.error("ID不能为空");
|
||||
}
|
||||
try {
|
||||
tmsYwDingdanService.deleteEntityById(TmsYwDingdanEntity.class, id);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("运输订单删除失败");
|
||||
}
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,402 @@
|
|||
package com.zzjee.tms.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.zzjee.tms.entity.VTmsDzEntity;
|
||||
import com.zzjee.tms.service.VTmsDzServiceI;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jeecgframework.core.beanvalidator.BeanValidators;
|
||||
import org.jeecgframework.core.common.controller.BaseController;
|
||||
import org.jeecgframework.core.common.exception.BusinessException;
|
||||
import org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery;
|
||||
import org.jeecgframework.core.common.model.json.AjaxJson;
|
||||
import org.jeecgframework.core.common.model.json.DataGrid;
|
||||
import org.jeecgframework.core.constant.Globals;
|
||||
import org.jeecgframework.core.util.ExceptionUtil;
|
||||
import org.jeecgframework.core.util.MyBeanUtils;
|
||||
import org.jeecgframework.core.util.ResourceUtil;
|
||||
import org.jeecgframework.core.util.StringUtil;
|
||||
import org.jeecgframework.jwt.util.ResponseMessage;
|
||||
import org.jeecgframework.jwt.util.Result;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.entity.vo.NormalExcelConstants;
|
||||
import org.jeecgframework.tag.core.easyui.TagUtil;
|
||||
import org.jeecgframework.web.system.service.SystemService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Title: Controller
|
||||
* @Description: v_tms_dz
|
||||
* @author onlineGenerator
|
||||
* @date 2018-08-08 01:31:13
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Api(value="VTmsDz",description="v_tms_dz",tags="vTmsDzController")
|
||||
@Controller
|
||||
@RequestMapping("/vTmsDzController")
|
||||
public class VTmsDzController extends BaseController {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(VTmsDzController.class);
|
||||
|
||||
@Autowired
|
||||
private VTmsDzServiceI vTmsDzService;
|
||||
@Autowired
|
||||
private SystemService systemService;
|
||||
@Autowired
|
||||
private Validator validator;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* v_tms_dz列表 页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "list")
|
||||
public ModelAndView list(HttpServletRequest request) {
|
||||
return new ModelAndView("com/zzjee/tms/vTmsDzList");
|
||||
}
|
||||
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @param dataGrid
|
||||
* @param user
|
||||
*/
|
||||
|
||||
@RequestMapping(params = "datagrid")
|
||||
public void datagrid(VTmsDzEntity vTmsDz, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
|
||||
CriteriaQuery cq = new CriteriaQuery(VTmsDzEntity.class, dataGrid);
|
||||
//查询条件组装器
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vTmsDz, request.getParameterMap());
|
||||
try{
|
||||
//自定义追加查询条件
|
||||
}catch (Exception e) {
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
cq.add();
|
||||
this.vTmsDzService.getDataGridReturn(cq, true);
|
||||
TagUtil.datagrid(response, dataGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除v_tms_dz
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doDel(VTmsDzEntity vTmsDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
vTmsDz = systemService.getEntity(VTmsDzEntity.class, vTmsDz.getId());
|
||||
message = "v_tms_dz删除成功";
|
||||
try{
|
||||
vTmsDzService.delete(vTmsDz);
|
||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "v_tms_dz删除失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除v_tms_dz
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doBatchDel")
|
||||
@ResponseBody
|
||||
public AjaxJson doBatchDel(String ids, HttpServletRequest request){
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "v_tms_dz删除成功";
|
||||
try{
|
||||
for(String id:ids.split(",")){
|
||||
VTmsDzEntity vTmsDz = systemService.getEntity(VTmsDzEntity.class,
|
||||
id
|
||||
);
|
||||
vTmsDzService.delete(vTmsDz);
|
||||
systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "v_tms_dz删除失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加v_tms_dz
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doAdd")
|
||||
@ResponseBody
|
||||
public AjaxJson doAdd(VTmsDzEntity vTmsDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "v_tms_dz添加成功";
|
||||
try{
|
||||
vTmsDzService.save(vTmsDz);
|
||||
systemService.addLog(message, Globals.Log_Type_INSERT, Globals.Log_Leavel_INFO);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
message = "v_tms_dz添加失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新v_tms_dz
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "doUpdate")
|
||||
@ResponseBody
|
||||
public AjaxJson doUpdate(VTmsDzEntity vTmsDz, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "v_tms_dz更新成功";
|
||||
VTmsDzEntity t = vTmsDzService.get(VTmsDzEntity.class, vTmsDz.getId());
|
||||
try {
|
||||
MyBeanUtils.copyBeanNotNull2Bean(vTmsDz, t);
|
||||
vTmsDzService.saveOrUpdate(t);
|
||||
systemService.addLog(message, Globals.Log_Type_UPDATE, Globals.Log_Leavel_INFO);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
message = "v_tms_dz更新失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* v_tms_dz新增页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goAdd")
|
||||
public ModelAndView goAdd(VTmsDzEntity vTmsDz, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(vTmsDz.getId())) {
|
||||
vTmsDz = vTmsDzService.getEntity(VTmsDzEntity.class, vTmsDz.getId());
|
||||
req.setAttribute("vTmsDzPage", vTmsDz);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/vTmsDz-add");
|
||||
}
|
||||
/**
|
||||
* v_tms_dz编辑页面跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "goUpdate")
|
||||
public ModelAndView goUpdate(VTmsDzEntity vTmsDz, HttpServletRequest req) {
|
||||
if (StringUtil.isNotEmpty(vTmsDz.getId())) {
|
||||
vTmsDz = vTmsDzService.getEntity(VTmsDzEntity.class, vTmsDz.getId());
|
||||
req.setAttribute("vTmsDzPage", vTmsDz);
|
||||
}
|
||||
return new ModelAndView("com/zzjee/tms/vTmsDz-update");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入功能跳转
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(params = "upload")
|
||||
public ModelAndView upload(HttpServletRequest req) {
|
||||
req.setAttribute("controller_name","vTmsDzController");
|
||||
return new ModelAndView("common/upload/pub_excel_upload");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXls")
|
||||
public String exportXls(VTmsDzEntity vTmsDz, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
CriteriaQuery cq = new CriteriaQuery(VTmsDzEntity.class, dataGrid);
|
||||
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, vTmsDz, request.getParameterMap());
|
||||
List<VTmsDzEntity> vTmsDzs = this.vTmsDzService.getListByCriteriaQuery(cq,false);
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"v_tms_dz");
|
||||
modelMap.put(NormalExcelConstants.CLASS,VTmsDzEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("v_tms_dz列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,vTmsDzs);
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
/**
|
||||
* 导出excel 使模板
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@RequestMapping(params = "exportXlsByT")
|
||||
public String exportXlsByT(VTmsDzEntity vTmsDz, HttpServletRequest request, HttpServletResponse response
|
||||
, DataGrid dataGrid, ModelMap modelMap) {
|
||||
modelMap.put(NormalExcelConstants.FILE_NAME,"v_tms_dz");
|
||||
modelMap.put(NormalExcelConstants.CLASS,VTmsDzEntity.class);
|
||||
modelMap.put(NormalExcelConstants.PARAMS,new ExportParams("v_tms_dz列表", "导出人:"+ResourceUtil.getSessionUser().getRealName(),
|
||||
"导出信息"));
|
||||
modelMap.put(NormalExcelConstants.DATA_LIST,new ArrayList());
|
||||
return NormalExcelConstants.JEECG_EXCEL_VIEW;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@RequestMapping(params = "importExcel", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public AjaxJson importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
AjaxJson j = new AjaxJson();
|
||||
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
||||
ImportParams params = new ImportParams();
|
||||
params.setTitleRows(2);
|
||||
params.setHeadRows(1);
|
||||
params.setNeedSave(true);
|
||||
try {
|
||||
List<VTmsDzEntity> listVTmsDzEntitys = ExcelImportUtil.importExcel(file.getInputStream(),VTmsDzEntity.class,params);
|
||||
for (VTmsDzEntity vTmsDz : listVTmsDzEntitys) {
|
||||
vTmsDzService.save(vTmsDz);
|
||||
}
|
||||
j.setMsg("文件导入成功!");
|
||||
} catch (Exception e) {
|
||||
j.setMsg("文件导入失败!");
|
||||
logger.error(ExceptionUtil.getExceptionMessage(e));
|
||||
}finally{
|
||||
try {
|
||||
file.getInputStream().close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="v_tms_dz列表信息",produces="application/json",httpMethod="GET")
|
||||
public ResponseMessage<List<VTmsDzEntity>> list() {
|
||||
List<VTmsDzEntity> listVTmsDzs=vTmsDzService.getList(VTmsDzEntity.class);
|
||||
return Result.success(listVTmsDzs);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="根据ID获取v_tms_dz信息",notes="根据ID获取v_tms_dz信息",httpMethod="GET",produces="application/json")
|
||||
public ResponseMessage<?> get(@ApiParam(required=true,name="id",value="ID")@PathVariable("id") String id) {
|
||||
VTmsDzEntity task = vTmsDzService.get(VTmsDzEntity.class, id);
|
||||
if (task == null) {
|
||||
return Result.error("根据ID获取v_tms_dz信息为空");
|
||||
}
|
||||
return Result.success(task);
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="创建v_tms_dz")
|
||||
public ResponseMessage<?> create(@ApiParam(name="v_tms_dz对象")@RequestBody VTmsDzEntity vTmsDz, UriComponentsBuilder uriBuilder) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<VTmsDzEntity>> failures = validator.validate(vTmsDz);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
vTmsDzService.save(vTmsDz);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("v_tms_dz信息保存失败");
|
||||
}
|
||||
return Result.success(vTmsDz);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||
@ResponseBody
|
||||
@ApiOperation(value="更新v_tms_dz",notes="更新v_tms_dz")
|
||||
public ResponseMessage<?> update(@ApiParam(name="v_tms_dz对象")@RequestBody VTmsDzEntity vTmsDz) {
|
||||
//调用JSR303 Bean Validator进行校验,如果出错返回含400错误码及json格式的错误信息.
|
||||
Set<ConstraintViolation<VTmsDzEntity>> failures = validator.validate(vTmsDz);
|
||||
if (!failures.isEmpty()) {
|
||||
return Result.error(JSONArray.toJSONString(BeanValidators.extractPropertyAndMessage(failures)));
|
||||
}
|
||||
|
||||
//保存
|
||||
try{
|
||||
vTmsDzService.saveOrUpdate(vTmsDz);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("更新v_tms_dz信息失败");
|
||||
}
|
||||
|
||||
//按Restful约定,返回204状态码, 无内容. 也可以返回200状态码.
|
||||
return Result.success("更新v_tms_dz信息成功");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
||||
@ResponseStatus(HttpStatus.NO_CONTENT)
|
||||
@ApiOperation(value="删除v_tms_dz")
|
||||
public ResponseMessage<?> delete(@ApiParam(name="id",value="ID",required=true)@PathVariable("id") String id) {
|
||||
logger.info("delete[{}]" + id);
|
||||
// 验证
|
||||
if (StringUtils.isEmpty(id)) {
|
||||
return Result.error("ID不能为空");
|
||||
}
|
||||
try {
|
||||
vTmsDzService.deleteEntityById(VTmsDzEntity.class, id);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return Result.error("v_tms_dz删除失败");
|
||||
}
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.zzjee.tms.entity;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class DdPage {
|
||||
private List<TmsYwDingdanEntity> demos;
|
||||
|
||||
public List<TmsYwDingdanEntity> getDemos() {
|
||||
return demos;
|
||||
}
|
||||
|
||||
public void setDemos(List<TmsYwDingdanEntity> demos) {
|
||||
this.demos = demos;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,395 @@
|
|||
package com.zzjee.tms.entity;
|
||||
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 车辆管理
|
||||
* @author onlineGenerator
|
||||
* @date 2018-01-29 21:57:07
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "tms_md_cheliang", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class TmsMdCheliangEntity implements java.io.Serializable {
|
||||
/**主键*/
|
||||
private String id;
|
||||
/**创建人名称*/
|
||||
private String createName;
|
||||
/**创建人登录名称*/
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
private Date createDate;
|
||||
/**更新人名称*/
|
||||
private String updateName;
|
||||
/**更新人登录名称*/
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
private Date updateDate;
|
||||
/**所属部门*/
|
||||
private String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private String bpmStatus;
|
||||
/**车牌号*/
|
||||
@Excel(name="车牌号",width=15)
|
||||
private String chepaihao;
|
||||
/**车型*/
|
||||
@Excel(name="车型",width=15)
|
||||
private String chexing;
|
||||
/**最大体积*/
|
||||
@Excel(name="最大体积",width=15)
|
||||
private String zuidatiji;
|
||||
/**载重*/
|
||||
@Excel(name="载重",width=15)
|
||||
private String zaizhong;
|
||||
/**载人数*/
|
||||
@Excel(name="载人数",width=15)
|
||||
private String zairen;
|
||||
/**准假驾照*/
|
||||
@Excel(name="准假驾照",width=15)
|
||||
private String jiazhao;
|
||||
/**是否可用*/
|
||||
@Excel(name="是否可用",width=15,dicCode="sf_yn")
|
||||
private String zhuangtai;
|
||||
/**备注*/
|
||||
@Excel(name="备注",width=15)
|
||||
private String beizhu;
|
||||
/**默认司机*/
|
||||
@Excel(name="默认司机",width=15)
|
||||
private String username;
|
||||
/**gps*/
|
||||
@Excel(name="gps",width=15)
|
||||
private String gpsid;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 主键
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 主键
|
||||
*/
|
||||
public void setId(String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
@Column(name ="CREATE_DATE",nullable=true)
|
||||
public Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
@Column(name ="UPDATE_DATE",nullable=true)
|
||||
public Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
@Column(name ="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 ="CHEPAIHAO",nullable=true,length=32)
|
||||
public String getChepaihao(){
|
||||
return this.chepaihao;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 车牌号
|
||||
*/
|
||||
public void setChepaihao(String chepaihao){
|
||||
this.chepaihao = chepaihao;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 车型
|
||||
*/
|
||||
@Column(name ="CHEXING",nullable=true,length=32)
|
||||
public String getChexing(){
|
||||
return this.chexing;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 车型
|
||||
*/
|
||||
public void setChexing(String chexing){
|
||||
this.chexing = chexing;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 最大体积
|
||||
*/
|
||||
@Column(name ="ZUIDATIJI",nullable=true,length=32)
|
||||
public String getZuidatiji(){
|
||||
return this.zuidatiji;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 最大体积
|
||||
*/
|
||||
public void setZuidatiji(String zuidatiji){
|
||||
this.zuidatiji = zuidatiji;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 载重
|
||||
*/
|
||||
@Column(name ="ZAIZHONG",nullable=true,length=32)
|
||||
public String getZaizhong(){
|
||||
return this.zaizhong;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 载重
|
||||
*/
|
||||
public void setZaizhong(String zaizhong){
|
||||
this.zaizhong = zaizhong;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 载人数
|
||||
*/
|
||||
@Column(name ="ZAIREN",nullable=true,length=32)
|
||||
public String getZairen(){
|
||||
return this.zairen;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 载人数
|
||||
*/
|
||||
public void setZairen(String zairen){
|
||||
this.zairen = zairen;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 准假驾照
|
||||
*/
|
||||
@Column(name ="JIAZHAO",nullable=true,length=32)
|
||||
public String getJiazhao(){
|
||||
return this.jiazhao;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 准假驾照
|
||||
*/
|
||||
public void setJiazhao(String jiazhao){
|
||||
this.jiazhao = jiazhao;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 是否可用
|
||||
*/
|
||||
@Column(name ="ZHUANGTAI",nullable=true,length=32)
|
||||
public String getZhuangtai(){
|
||||
return this.zhuangtai;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 是否可用
|
||||
*/
|
||||
public void setZhuangtai(String zhuangtai){
|
||||
this.zhuangtai = zhuangtai;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 备注
|
||||
*/
|
||||
@Column(name ="BEIZHU",nullable=true,length=32)
|
||||
public String getBeizhu(){
|
||||
return this.beizhu;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 备注
|
||||
*/
|
||||
public void setBeizhu(String beizhu){
|
||||
this.beizhu = beizhu;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 默认司机
|
||||
*/
|
||||
@Column(name ="USERNAME",nullable=true,length=32)
|
||||
public String getUsername(){
|
||||
return this.username;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 默认司机
|
||||
*/
|
||||
public void setUsername(String username){
|
||||
this.username = username;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String gps
|
||||
*/
|
||||
@Column(name ="GPSID",nullable=true,length=32)
|
||||
public String getGpsid(){
|
||||
return this.gpsid;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String gps
|
||||
*/
|
||||
public void setGpsid(String gpsid){
|
||||
this.gpsid = gpsid;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,395 @@
|
|||
package com.zzjee.tms.entity;
|
||||
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: 客户地址
|
||||
* @author onlineGenerator
|
||||
* @date 2018-01-29 21:57:16
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "tms_md_dz", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class TmsMdDzEntity implements java.io.Serializable {
|
||||
/**id*/
|
||||
private String id;
|
||||
/**创建人名称*/
|
||||
private String createName;
|
||||
/**创建人登录名称*/
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
private Date createDate;
|
||||
/**更新人名称*/
|
||||
private String updateName;
|
||||
/**更新人登录名称*/
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
private Date updateDate;
|
||||
/**所属部门*/
|
||||
private String sysOrgCode;
|
||||
/**所属公司*/
|
||||
private String sysCompanyCode;
|
||||
/**流程状态*/
|
||||
private String bpmStatus;
|
||||
/**用户*/
|
||||
@Excel(name="用户",width=15)
|
||||
private String username;
|
||||
/**联系人*/
|
||||
@Excel(name="联系人",width=15)
|
||||
private String lianxiren;
|
||||
/**联系电话*/
|
||||
@Excel(name="联系电话",width=15)
|
||||
private String dianhua;
|
||||
/**详细地址*/
|
||||
@Excel(name="详细地址",width=15)
|
||||
private String xiangxidizhi;
|
||||
/**省份*/
|
||||
@Excel(name="省份",width=15)
|
||||
private String shengfen;
|
||||
/**城市*/
|
||||
@Excel(name="城市",width=15)
|
||||
private String chengshi;
|
||||
/**区域*/
|
||||
@Excel(name="区域",width=15)
|
||||
private String quyu;
|
||||
/**默认地址*/
|
||||
@Excel(name="默认地址",width=15,dicCode="sf_yn")
|
||||
private String morendizhi;
|
||||
/**是否可用*/
|
||||
@Excel(name="是否可用",width=15,dicCode="sf_yn")
|
||||
private String zhuangtai;
|
||||
/**地址类型*/
|
||||
@Excel(name="地址类型",width=15)
|
||||
private String dizhileixing;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String id
|
||||
*/
|
||||
public void setId(String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人名称
|
||||
*/
|
||||
@Column(name ="CREATE_NAME",nullable=true,length=50)
|
||||
public String getCreateName(){
|
||||
return this.createName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人名称
|
||||
*/
|
||||
public void setCreateName(String createName){
|
||||
this.createName = createName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 创建人登录名称
|
||||
*/
|
||||
@Column(name ="CREATE_BY",nullable=true,length=50)
|
||||
public String getCreateBy(){
|
||||
return this.createBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 创建人登录名称
|
||||
*/
|
||||
public void setCreateBy(String createBy){
|
||||
this.createBy = createBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 创建日期
|
||||
*/
|
||||
@Column(name ="CREATE_DATE",nullable=true)
|
||||
public Date getCreateDate(){
|
||||
return this.createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 创建日期
|
||||
*/
|
||||
public void setCreateDate(Date createDate){
|
||||
this.createDate = createDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人名称
|
||||
*/
|
||||
@Column(name ="UPDATE_NAME",nullable=true,length=50)
|
||||
public String getUpdateName(){
|
||||
return this.updateName;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人名称
|
||||
*/
|
||||
public void setUpdateName(String updateName){
|
||||
this.updateName = updateName;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 更新人登录名称
|
||||
*/
|
||||
@Column(name ="UPDATE_BY",nullable=true,length=50)
|
||||
public String getUpdateBy(){
|
||||
return this.updateBy;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 更新人登录名称
|
||||
*/
|
||||
public void setUpdateBy(String updateBy){
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.util.Date
|
||||
*@return: java.util.Date 更新日期
|
||||
*/
|
||||
@Column(name ="UPDATE_DATE",nullable=true)
|
||||
public Date getUpdateDate(){
|
||||
return this.updateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.util.Date
|
||||
*@param: java.util.Date 更新日期
|
||||
*/
|
||||
public void setUpdateDate(Date updateDate){
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属部门
|
||||
*/
|
||||
@Column(name ="SYS_ORG_CODE",nullable=true,length=50)
|
||||
public String getSysOrgCode(){
|
||||
return this.sysOrgCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属部门
|
||||
*/
|
||||
public void setSysOrgCode(String sysOrgCode){
|
||||
this.sysOrgCode = sysOrgCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 所属公司
|
||||
*/
|
||||
@Column(name ="SYS_COMPANY_CODE",nullable=true,length=50)
|
||||
public String getSysCompanyCode(){
|
||||
return this.sysCompanyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 所属公司
|
||||
*/
|
||||
public void setSysCompanyCode(String sysCompanyCode){
|
||||
this.sysCompanyCode = sysCompanyCode;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 流程状态
|
||||
*/
|
||||
@Column(name ="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 ="USERNAME",nullable=true,length=32)
|
||||
public String getUsername(){
|
||||
return this.username;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 用户
|
||||
*/
|
||||
public void setUsername(String username){
|
||||
this.username = username;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 联系人
|
||||
*/
|
||||
@Column(name ="LIANXIREN",nullable=true,length=32)
|
||||
public String getLianxiren(){
|
||||
return this.lianxiren;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 联系人
|
||||
*/
|
||||
public void setLianxiren(String lianxiren){
|
||||
this.lianxiren = lianxiren;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 联系电话
|
||||
*/
|
||||
@Column(name ="DIANHUA",nullable=true,length=32)
|
||||
public String getDianhua(){
|
||||
return this.dianhua;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 联系电话
|
||||
*/
|
||||
public void setDianhua(String dianhua){
|
||||
this.dianhua = dianhua;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 详细地址
|
||||
*/
|
||||
@Column(name ="XIANGXIDIZHI",nullable=true,length=32)
|
||||
public String getXiangxidizhi(){
|
||||
return this.xiangxidizhi;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 详细地址
|
||||
*/
|
||||
public void setXiangxidizhi(String xiangxidizhi){
|
||||
this.xiangxidizhi = xiangxidizhi;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 省份
|
||||
*/
|
||||
@Column(name ="SHENGFEN",nullable=true,length=32)
|
||||
public String getShengfen(){
|
||||
return this.shengfen;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 省份
|
||||
*/
|
||||
public void setShengfen(String shengfen){
|
||||
this.shengfen = shengfen;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 城市
|
||||
*/
|
||||
@Column(name ="CHENGSHI",nullable=true,length=32)
|
||||
public String getChengshi(){
|
||||
return this.chengshi;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 城市
|
||||
*/
|
||||
public void setChengshi(String chengshi){
|
||||
this.chengshi = chengshi;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 区域
|
||||
*/
|
||||
@Column(name ="QUYU",nullable=true,length=32)
|
||||
public String getQuyu(){
|
||||
return this.quyu;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 区域
|
||||
*/
|
||||
public void setQuyu(String quyu){
|
||||
this.quyu = quyu;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 默认地址
|
||||
*/
|
||||
@Column(name ="MORENDIZHI",nullable=true,length=32)
|
||||
public String getMorendizhi(){
|
||||
return this.morendizhi;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 默认地址
|
||||
*/
|
||||
public void setMorendizhi(String morendizhi){
|
||||
this.morendizhi = morendizhi;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 是否可用
|
||||
*/
|
||||
@Column(name ="ZHUANGTAI",nullable=true,length=32)
|
||||
public String getZhuangtai(){
|
||||
return this.zhuangtai;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 是否可用
|
||||
*/
|
||||
public void setZhuangtai(String zhuangtai){
|
||||
this.zhuangtai = zhuangtai;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String 地址类型
|
||||
*/
|
||||
@Column(name ="DIZHILEIXING",nullable=true,length=32)
|
||||
public String getDizhileixing(){
|
||||
return this.dizhileixing;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String 地址类型
|
||||
*/
|
||||
public void setDizhileixing(String dizhileixing){
|
||||
this.dizhileixing = dizhileixing;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.zzjee.tms.entity;
|
||||
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
/**
|
||||
* @Title: Entity
|
||||
* @Description: v_tms_dz
|
||||
* @author onlineGenerator
|
||||
* @date 2018-08-08 01:31:13
|
||||
* @version V1.0
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "v_tms_dz", schema = "")
|
||||
@SuppressWarnings("serial")
|
||||
public class VTmsDzEntity implements java.io.Serializable {
|
||||
/**id*/
|
||||
private String id;
|
||||
/**dizhi*/
|
||||
@Excel(name="dizhi",width=15)
|
||||
private String dizhi;
|
||||
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String id
|
||||
*/
|
||||
@Id
|
||||
@GeneratedValue(generator = "paymentableGenerator")
|
||||
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
|
||||
|
||||
@Column(name ="ID",nullable=false,length=36)
|
||||
public String getId(){
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String id
|
||||
*/
|
||||
public void setId(String id){
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
*方法: 取得java.lang.String
|
||||
*@return: java.lang.String dizhi
|
||||
*/
|
||||
|
||||
@Column(name ="DIZHI",nullable=true,length=131)
|
||||
public String getDizhi(){
|
||||
return this.dizhi;
|
||||
}
|
||||
|
||||
/**
|
||||
*方法: 设置java.lang.String
|
||||
*@param: java.lang.String dizhi
|
||||
*/
|
||||
public void setDizhi(String dizhi){
|
||||
this.dizhi = dizhi;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.zzjee.tms.service;
|
||||
import com.zzjee.tms.entity.TmsMdCheliangEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface TmsMdCheliangServiceI extends CommonService {
|
||||
|
||||
public void delete(TmsMdCheliangEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(TmsMdCheliangEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(TmsMdCheliangEntity entity) throws Exception;
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.zzjee.tms.service;
|
||||
import com.zzjee.tms.entity.TmsMdDzEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface TmsMdDzServiceI extends CommonService {
|
||||
|
||||
public void delete(TmsMdDzEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(TmsMdDzEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(TmsMdDzEntity entity) throws Exception;
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.zzjee.tms.service;
|
||||
import com.zzjee.tms.entity.TmsYwDingdanEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface TmsYwDingdanServiceI extends CommonService {
|
||||
|
||||
public void delete(TmsYwDingdanEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(TmsYwDingdanEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(TmsYwDingdanEntity entity) throws Exception;
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.zzjee.tms.service;
|
||||
import com.zzjee.tms.entity.VTmsDzEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface VTmsDzServiceI extends CommonService {
|
||||
|
||||
public void delete(VTmsDzEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(VTmsDzEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(VTmsDzEntity entity) throws Exception;
|
||||
|
||||
}
|
|
@ -0,0 +1,158 @@
|
|||
package com.zzjee.tms.service.impl;
|
||||
|
||||
import com.zzjee.tms.entity.TmsMdCheliangEntity;
|
||||
import com.zzjee.tms.service.TmsMdCheliangServiceI;
|
||||
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("tmsMdCheliangService")
|
||||
@Transactional
|
||||
public class TmsMdCheliangServiceImpl extends CommonServiceImpl implements TmsMdCheliangServiceI {
|
||||
|
||||
|
||||
public void delete(TmsMdCheliangEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
//执行删除操作增强业务
|
||||
this.doDelBus(entity);
|
||||
}
|
||||
|
||||
public Serializable save(TmsMdCheliangEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
//执行新增操作增强业务
|
||||
this.doAddBus(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(TmsMdCheliangEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
//执行更新操作增强业务
|
||||
this.doUpdateBus(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doAddBus(TmsMdCheliangEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 更新操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doUpdateBus(TmsMdCheliangEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 删除操作增强业务
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
private void doDelBus(TmsMdCheliangEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
|
||||
private Map<String,Object> populationMap(TmsMdCheliangEntity 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("chepaihao", t.getChepaihao());
|
||||
map.put("chexing", t.getChexing());
|
||||
map.put("zuidatiji", t.getZuidatiji());
|
||||
map.put("zaizhong", t.getZaizhong());
|
||||
map.put("zairen", t.getZairen());
|
||||
map.put("jiazhao", t.getJiazhao());
|
||||
map.put("zhuangtai", t.getZhuangtai());
|
||||
map.put("beizhu", t.getBeizhu());
|
||||
map.put("username", t.getUsername());
|
||||
map.put("gpsid", t.getGpsid());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,TmsMdCheliangEntity 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("#{chepaihao}",String.valueOf(t.getChepaihao()));
|
||||
sql = sql.replace("#{chexing}",String.valueOf(t.getChexing()));
|
||||
sql = sql.replace("#{zuidatiji}",String.valueOf(t.getZuidatiji()));
|
||||
sql = sql.replace("#{zaizhong}",String.valueOf(t.getZaizhong()));
|
||||
sql = sql.replace("#{zairen}",String.valueOf(t.getZairen()));
|
||||
sql = sql.replace("#{jiazhao}",String.valueOf(t.getJiazhao()));
|
||||
sql = sql.replace("#{zhuangtai}",String.valueOf(t.getZhuangtai()));
|
||||
sql = sql.replace("#{beizhu}",String.valueOf(t.getBeizhu()));
|
||||
sql = sql.replace("#{username}",String.valueOf(t.getUsername()));
|
||||
sql = sql.replace("#{gpsid}",String.valueOf(t.getGpsid()));
|
||||
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("tms_md_cheliang",data);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new Exception("执行JAVA增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,158 @@
|
|||
package com.zzjee.tms.service.impl;
|
||||
|
||||
import com.zzjee.tms.entity.TmsMdDzEntity;
|
||||
import com.zzjee.tms.service.TmsMdDzServiceI;
|
||||
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("tmsMdDzService")
|
||||
@Transactional
|
||||
public class TmsMdDzServiceImpl extends CommonServiceImpl implements TmsMdDzServiceI {
|
||||
|
||||
|
||||
public void delete(TmsMdDzEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
//执行删除操作增强业务
|
||||
this.doDelBus(entity);
|
||||
}
|
||||
|
||||
public Serializable save(TmsMdDzEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
//执行新增操作增强业务
|
||||
this.doAddBus(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(TmsMdDzEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
//执行更新操作增强业务
|
||||
this.doUpdateBus(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doAddBus(TmsMdDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 更新操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doUpdateBus(TmsMdDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 删除操作增强业务
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
private void doDelBus(TmsMdDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
|
||||
private Map<String,Object> populationMap(TmsMdDzEntity 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("username", t.getUsername());
|
||||
map.put("lianxiren", t.getLianxiren());
|
||||
map.put("dianhua", t.getDianhua());
|
||||
map.put("xiangxidizhi", t.getXiangxidizhi());
|
||||
map.put("shengfen", t.getShengfen());
|
||||
map.put("chengshi", t.getChengshi());
|
||||
map.put("quyu", t.getQuyu());
|
||||
map.put("morendizhi", t.getMorendizhi());
|
||||
map.put("zhuangtai", t.getZhuangtai());
|
||||
map.put("dizhileixing", t.getDizhileixing());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,TmsMdDzEntity 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("#{username}",String.valueOf(t.getUsername()));
|
||||
sql = sql.replace("#{lianxiren}",String.valueOf(t.getLianxiren()));
|
||||
sql = sql.replace("#{dianhua}",String.valueOf(t.getDianhua()));
|
||||
sql = sql.replace("#{xiangxidizhi}",String.valueOf(t.getXiangxidizhi()));
|
||||
sql = sql.replace("#{shengfen}",String.valueOf(t.getShengfen()));
|
||||
sql = sql.replace("#{chengshi}",String.valueOf(t.getChengshi()));
|
||||
sql = sql.replace("#{quyu}",String.valueOf(t.getQuyu()));
|
||||
sql = sql.replace("#{morendizhi}",String.valueOf(t.getMorendizhi()));
|
||||
sql = sql.replace("#{zhuangtai}",String.valueOf(t.getZhuangtai()));
|
||||
sql = sql.replace("#{dizhileixing}",String.valueOf(t.getDizhileixing()));
|
||||
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("tms_md_dz",data);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new Exception("执行JAVA增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,184 @@
|
|||
package com.zzjee.tms.service.impl;
|
||||
|
||||
import com.zzjee.tms.entity.TmsYwDingdanEntity;
|
||||
import com.zzjee.tms.service.TmsYwDingdanServiceI;
|
||||
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("tmsYwDingdanService")
|
||||
@Transactional
|
||||
public class TmsYwDingdanServiceImpl extends CommonServiceImpl implements TmsYwDingdanServiceI {
|
||||
|
||||
|
||||
public void delete(TmsYwDingdanEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
//执行删除操作增强业务
|
||||
this.doDelBus(entity);
|
||||
}
|
||||
|
||||
public Serializable save(TmsYwDingdanEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
//执行新增操作增强业务
|
||||
this.doAddBus(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(TmsYwDingdanEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
//执行更新操作增强业务
|
||||
this.doUpdateBus(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doAddBus(TmsYwDingdanEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 更新操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doUpdateBus(TmsYwDingdanEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 删除操作增强业务
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
private void doDelBus(TmsYwDingdanEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
|
||||
private Map<String,Object> populationMap(TmsYwDingdanEntity 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("fadh", t.getFadh());
|
||||
map.put("username", t.getUsername());
|
||||
map.put("fahuoren", t.getFahuoren());
|
||||
map.put("fhrdh", t.getFhrdh());
|
||||
map.put("fhrdz", t.getFhrdz());
|
||||
map.put("shouhuoren", t.getShouhuoren());
|
||||
map.put("shrdh", t.getShrdh());
|
||||
map.put("chehao", t.getChehao());
|
||||
map.put("huowu", t.getHuowu());
|
||||
map.put("chang", t.getChang());
|
||||
map.put("kuan", t.getKuan());
|
||||
map.put("gao", t.getGao());
|
||||
map.put("tiji", t.getTiji());
|
||||
map.put("zhongl", t.getZhongl());
|
||||
map.put("daishouk", t.getDaishouk());
|
||||
map.put("dengtongzhi", t.getDengtongzhi());
|
||||
map.put("jiage", t.getJiage());
|
||||
map.put("xiadanfj", t.getXiadanfj());
|
||||
map.put("huidanfj", t.getHuidanfj());
|
||||
map.put("zhuangtai", t.getZhuangtai());
|
||||
map.put("xdrmz", t.getXdrmz());
|
||||
map.put("siji", t.getSiji());
|
||||
map.put("sdsj", t.getSdsj());
|
||||
map.put("yjsdsj", t.getYjsdsj());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,TmsYwDingdanEntity 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("#{fadh}",String.valueOf(t.getFadh()));
|
||||
sql = sql.replace("#{username}",String.valueOf(t.getUsername()));
|
||||
sql = sql.replace("#{fahuoren}",String.valueOf(t.getFahuoren()));
|
||||
sql = sql.replace("#{fhrdh}",String.valueOf(t.getFhrdh()));
|
||||
sql = sql.replace("#{fhrdz}",String.valueOf(t.getFhrdz()));
|
||||
sql = sql.replace("#{shouhuoren}",String.valueOf(t.getShouhuoren()));
|
||||
sql = sql.replace("#{shrdh}",String.valueOf(t.getShrdh()));
|
||||
sql = sql.replace("#{chehao}",String.valueOf(t.getChehao()));
|
||||
sql = sql.replace("#{huowu}",String.valueOf(t.getHuowu()));
|
||||
sql = sql.replace("#{chang}",String.valueOf(t.getChang()));
|
||||
sql = sql.replace("#{kuan}",String.valueOf(t.getKuan()));
|
||||
sql = sql.replace("#{gao}",String.valueOf(t.getGao()));
|
||||
sql = sql.replace("#{tiji}",String.valueOf(t.getTiji()));
|
||||
sql = sql.replace("#{zhongl}",String.valueOf(t.getZhongl()));
|
||||
sql = sql.replace("#{daishouk}",String.valueOf(t.getDaishouk()));
|
||||
sql = sql.replace("#{dengtongzhi}",String.valueOf(t.getDengtongzhi()));
|
||||
sql = sql.replace("#{jiage}",String.valueOf(t.getJiage()));
|
||||
sql = sql.replace("#{xiadanfj}",String.valueOf(t.getXiadanfj()));
|
||||
sql = sql.replace("#{huidanfj}",String.valueOf(t.getHuidanfj()));
|
||||
sql = sql.replace("#{zhuangtai}",String.valueOf(t.getZhuangtai()));
|
||||
sql = sql.replace("#{xdrmz}",String.valueOf(t.getXdrmz()));
|
||||
sql = sql.replace("#{siji}",String.valueOf(t.getSiji()));
|
||||
sql = sql.replace("#{sdsj}",String.valueOf(t.getSdsj()));
|
||||
sql = sql.replace("#{yjsdsj}",String.valueOf(t.getYjsdsj()));
|
||||
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("tms_yw_dingdan",data);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new Exception("执行JAVA增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,122 @@
|
|||
package com.zzjee.tms.service.impl;
|
||||
|
||||
import com.zzjee.tms.entity.VTmsDzEntity;
|
||||
import com.zzjee.tms.service.VTmsDzServiceI;
|
||||
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("vTmsDzService")
|
||||
@Transactional
|
||||
public class VTmsDzServiceImpl extends CommonServiceImpl implements VTmsDzServiceI {
|
||||
|
||||
|
||||
public void delete(VTmsDzEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
//执行删除操作增强业务
|
||||
this.doDelBus(entity);
|
||||
}
|
||||
|
||||
public Serializable save(VTmsDzEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
//执行新增操作增强业务
|
||||
this.doAddBus(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(VTmsDzEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
//执行更新操作增强业务
|
||||
this.doUpdateBus(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doAddBus(VTmsDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 更新操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doUpdateBus(VTmsDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 删除操作增强业务
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
private void doDelBus(VTmsDzEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
|
||||
private Map<String,Object> populationMap(VTmsDzEntity t){
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
map.put("id", t.getId());
|
||||
map.put("dizhi", t.getDizhi());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,VTmsDzEntity t){
|
||||
sql = sql.replace("#{id}",String.valueOf(t.getId()));
|
||||
sql = sql.replace("#{dizhi}",String.valueOf(t.getDizhi()));
|
||||
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
|
||||
return sql;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行JAVA增强
|
||||
*/
|
||||
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
|
||||
if(StringUtil.isNotEmpty(cgJavaValue)){
|
||||
Object obj = null;
|
||||
try {
|
||||
if("class".equals(cgJavaType)){
|
||||
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
|
||||
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
|
||||
}else if("spring".equals(cgJavaType)){
|
||||
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
|
||||
}
|
||||
if(obj instanceof CgformEnhanceJavaInter){
|
||||
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
|
||||
javaInter.execute("v_tms_dz",data);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new Exception("执行JAVA增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.zzjee.tmsv.service;
|
||||
import com.zzjee.tmsv.entity.VYsddEntity;
|
||||
import org.jeecgframework.core.common.service.CommonService;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface VYsddServiceI extends CommonService {
|
||||
|
||||
public void delete(VYsddEntity entity) throws Exception;
|
||||
|
||||
public Serializable save(VYsddEntity entity) throws Exception;
|
||||
|
||||
public void saveOrUpdate(VYsddEntity entity) throws Exception;
|
||||
|
||||
}
|
|
@ -0,0 +1,156 @@
|
|||
package com.zzjee.tmsv.service.impl;
|
||||
|
||||
import com.zzjee.tmsv.entity.VYsddEntity;
|
||||
import com.zzjee.tmsv.service.VYsddServiceI;
|
||||
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("vYsddService")
|
||||
@Transactional
|
||||
public class VYsddServiceImpl extends CommonServiceImpl implements VYsddServiceI {
|
||||
|
||||
|
||||
public void delete(VYsddEntity entity) throws Exception{
|
||||
super.delete(entity);
|
||||
//执行删除操作增强业务
|
||||
this.doDelBus(entity);
|
||||
}
|
||||
|
||||
public Serializable save(VYsddEntity entity) throws Exception{
|
||||
Serializable t = super.save(entity);
|
||||
//执行新增操作增强业务
|
||||
this.doAddBus(entity);
|
||||
return t;
|
||||
}
|
||||
|
||||
public void saveOrUpdate(VYsddEntity entity) throws Exception{
|
||||
super.saveOrUpdate(entity);
|
||||
//执行更新操作增强业务
|
||||
this.doUpdateBus(entity);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doAddBus(VYsddEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 更新操作增强业务
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
private void doUpdateBus(VYsddEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
/**
|
||||
* 删除操作增强业务
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
private void doDelBus(VYsddEntity t) throws Exception{
|
||||
//-----------------sql增强 start----------------------------
|
||||
//-----------------sql增强 end------------------------------
|
||||
|
||||
//-----------------java增强 start---------------------------
|
||||
//-----------------java增强 end-----------------------------
|
||||
}
|
||||
|
||||
private Map<String,Object> populationMap(VYsddEntity t){
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
map.put("id", t.getId());
|
||||
map.put("create_date", t.getCreateDate());
|
||||
map.put("fahuoren", t.getFahuoren());
|
||||
map.put("huowu", t.getHuowu());
|
||||
map.put("hwshjs", t.getHwshjs());
|
||||
map.put("zhongl", t.getZhongl());
|
||||
map.put("tiji", t.getTiji());
|
||||
map.put("shrdh", t.getShrdh());
|
||||
map.put("shouhuoren", t.getShouhuoren());
|
||||
map.put("hwshfs", t.getHwshfs());
|
||||
map.put("shrsj", t.getShrsj());
|
||||
map.put("daishouk", t.getDaishouk());
|
||||
map.put("hwyf", t.getHwyf());
|
||||
map.put("hwzfy", t.getHwzfy());
|
||||
map.put("hwxhf", t.getHwxhf());
|
||||
map.put("chehao", t.getChehao());
|
||||
map.put("zhuangtai", t.getZhuangtai());
|
||||
map.put("ywhdbz", t.getYwhdbz());
|
||||
map.put("sdsj", t.getSdsj());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 替换sql中的变量
|
||||
* @param sql
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public String replaceVal(String sql,VYsddEntity t){
|
||||
sql = sql.replace("#{id}",String.valueOf(t.getId()));
|
||||
sql = sql.replace("#{create_date}",String.valueOf(t.getCreateDate()));
|
||||
sql = sql.replace("#{fahuoren}",String.valueOf(t.getFahuoren()));
|
||||
sql = sql.replace("#{huowu}",String.valueOf(t.getHuowu()));
|
||||
sql = sql.replace("#{hwshjs}",String.valueOf(t.getHwshjs()));
|
||||
sql = sql.replace("#{zhongl}",String.valueOf(t.getZhongl()));
|
||||
sql = sql.replace("#{tiji}",String.valueOf(t.getTiji()));
|
||||
sql = sql.replace("#{shrdh}",String.valueOf(t.getShrdh()));
|
||||
sql = sql.replace("#{shouhuoren}",String.valueOf(t.getShouhuoren()));
|
||||
sql = sql.replace("#{hwshfs}",String.valueOf(t.getHwshfs()));
|
||||
sql = sql.replace("#{shrsj}",String.valueOf(t.getShrsj()));
|
||||
sql = sql.replace("#{daishouk}",String.valueOf(t.getDaishouk()));
|
||||
sql = sql.replace("#{hwyf}",String.valueOf(t.getHwyf()));
|
||||
sql = sql.replace("#{hwzfy}",String.valueOf(t.getHwzfy()));
|
||||
sql = sql.replace("#{hwxhf}",String.valueOf(t.getHwxhf()));
|
||||
sql = sql.replace("#{chehao}",String.valueOf(t.getChehao()));
|
||||
sql = sql.replace("#{zhuangtai}",String.valueOf(t.getZhuangtai()));
|
||||
sql = sql.replace("#{ywhdbz}",String.valueOf(t.getYwhdbz()));
|
||||
sql = sql.replace("#{sdsj}",String.valueOf(t.getSdsj()));
|
||||
sql = sql.replace("#{UUID}",UUID.randomUUID().toString());
|
||||
return sql;
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行JAVA增强
|
||||
*/
|
||||
private void executeJavaExtend(String cgJavaType,String cgJavaValue,Map<String,Object> data) throws Exception {
|
||||
if(StringUtil.isNotEmpty(cgJavaValue)){
|
||||
Object obj = null;
|
||||
try {
|
||||
if("class".equals(cgJavaType)){
|
||||
//因新增时已经校验了实例化是否可以成功,所以这块就不需要再做一次判断
|
||||
obj = MyClassLoader.getClassByScn(cgJavaValue).newInstance();
|
||||
}else if("spring".equals(cgJavaType)){
|
||||
obj = ApplicationContextUtil.getContext().getBean(cgJavaValue);
|
||||
}
|
||||
if(obj instanceof CgformEnhanceJavaInter){
|
||||
CgformEnhanceJavaInter javaInter = (CgformEnhanceJavaInter) obj;
|
||||
javaInter.execute("v_ysdd",data);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new Exception("执行JAVA增强出现异常!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
package com.zzjee.wm.controller;
|
||||
import com.zzjee.api.ResultDO;
|
||||
import com.zzjee.md.entity.*;
|
||||
import com.zzjee.tms.entity.TmsYwDingdanEntity;
|
||||
import com.zzjee.wm.entity.*;
|
||||
import com.zzjee.wm.page.*;
|
||||
import com.zzjee.wm.service.WmOmNoticeHServiceI;
|
||||
|
@ -329,7 +330,129 @@ public class WmOmNoticeHController extends BaseController {
|
|||
}
|
||||
return new ModelAndView("com/zzjee/wm/print/jianhuorenwu-print");
|
||||
}
|
||||
@RequestMapping(params = "doPrintzhuisu")
|
||||
public ModelAndView doPrintpzhuisu(String id,HttpServletRequest request) {
|
||||
WmOmNoticeHEntity wmOmNoticeHEntity = wmOmNoticeHService.getEntity(WmOmNoticeHEntity.class, id);
|
||||
wmOmNoticeHEntity.setPrintStatus("已打印");
|
||||
systemService.updateEntitie(wmOmNoticeHEntity);
|
||||
request.setAttribute("wmOmNoticeHPage", wmOmNoticeHEntity);
|
||||
request.setAttribute("kprq",DateUtils.date2Str(wmOmNoticeHEntity.getCreateDate(),DateUtils.date_sdf));
|
||||
request.setAttribute("comname", ResourceUtil.getConfigByName("comname"));
|
||||
request.setAttribute("showlisturl", ResourceUtil.getConfigByName("show.noticeurl")+id);
|
||||
|
||||
if(StringUtil.isNotEmpty(wmOmNoticeHEntity.getImCusCode())){
|
||||
request.setAttribute("noticeid", wmOmNoticeHEntity.getImCusCode());
|
||||
}else{
|
||||
request.setAttribute("noticeid", wmOmNoticeHEntity.getOmNoticeId());
|
||||
}
|
||||
|
||||
try{
|
||||
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wmOmNoticeHEntity.getCusCode());
|
||||
MdCusOtherEntity mdcusother = systemService.findUniqueByProperty(MdCusOtherEntity.class,"keHuBianMa",wmOmNoticeHEntity.getOcusCode());
|
||||
request.setAttribute("cusname",wmOmNoticeHEntity.getCusCode()+"-"+ mdcus.getZhongWenQch());
|
||||
if(mdcusother!=null){
|
||||
request.setAttribute("ocusname",wmOmNoticeHEntity.getOcusCode()+"-"+ mdcusother.getZhongWenQch());
|
||||
}else{
|
||||
request.setAttribute("ocusname",wmOmNoticeHEntity.getOcusCode());
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
//获取参数
|
||||
Object id0 = wmOmNoticeHEntity.getOmNoticeId();
|
||||
//===================================================================================
|
||||
//查询-产品
|
||||
String hql0 = "from WmOmQmIEntity where 1 = 1 AND omNoticeId = ? order by binId";
|
||||
Double tomsum = 0.00;
|
||||
Double noticesum = 0.00;
|
||||
Double tijisum = 0.00;
|
||||
Double zhlsum = 0.00;
|
||||
try{
|
||||
List<WmOmQmIEntity> wmOmQmIEntityList = systemService.findHql(hql0, id0);//获取行项目
|
||||
List<WmOmQmIEntity> wmOmQmIEntityListnew = new ArrayList<>();
|
||||
DecimalFormat dfsum=new DecimalFormat(".##");
|
||||
String filepath = ResourceUtil.getConfigByName("webUploadpath");
|
||||
String goodsurl = ResourceUtil.getConfigByName("show.goodsurl");
|
||||
|
||||
try{
|
||||
for(WmOmQmIEntity tom:wmOmQmIEntityList){
|
||||
try{
|
||||
QRcodeUtil.encode(goodsurl+tom.getId(),filepath+ File.separator + tom.getId()+".png");
|
||||
System.out.println(goodsurl+tom.getId());
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
tomsum = tomsum + Double.parseDouble(tom.getBaseGoodscount());
|
||||
try{
|
||||
tijisum = tijisum + Double.parseDouble(tom.getTinTj());
|
||||
|
||||
}catch ( Exception e){
|
||||
}
|
||||
try{
|
||||
zhlsum = zhlsum + Double.parseDouble(tom.getTinZhl());
|
||||
}catch ( Exception e){
|
||||
}
|
||||
try{
|
||||
tom.setTinZhl(dfsum.format(Double.parseDouble(tom.getTinZhl())));
|
||||
}catch ( Exception e){
|
||||
}
|
||||
try{
|
||||
tom.setTinTj(dfsum.format(Double.parseDouble(tom.getTinTj())));
|
||||
}catch ( Exception e){
|
||||
}
|
||||
tom.setBaseGoodscount(StringUtil.getdouble(tom.getBaseGoodscount()));
|
||||
try{
|
||||
MvGoodsEntity mvgoods = systemService.findUniqueByProperty(
|
||||
MvGoodsEntity.class, "goodsCode", tom.getGoodsId());
|
||||
if (mvgoods != null) {
|
||||
tom.setShpGuiGe(mvgoods.getShpGuiGe());
|
||||
}
|
||||
int shpguige = 0;
|
||||
try{
|
||||
shpguige = Integer.parseInt(mvgoods.getShpGuiGe());
|
||||
}catch (Exception e){
|
||||
}
|
||||
if(shpguige!=0){
|
||||
Double xianhshu = Math.floor(Double.parseDouble(tom.getBaseGoodscount())/shpguige);
|
||||
Double jianshu = Double.parseDouble(tom.getBaseGoodscount())%shpguige;
|
||||
long xiangshuint = Math.round(xianhshu);
|
||||
if(xianhshu > 0){
|
||||
tom.setPickNotice(xiangshuint+"整"+jianshu+tom.getBaseUnit());
|
||||
}else{
|
||||
tom.setPickNotice(tom.getBaseGoodscount()+tom.getBaseUnit());
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
}
|
||||
wmOmQmIEntityListnew.add(tom);
|
||||
}
|
||||
}catch ( Exception e){
|
||||
}
|
||||
String hqlnotice = "from WmOmNoticeIEntity where 1 = 1 AND oM_NOTICE_ID = ? ";
|
||||
List<WmOmNoticeIEntity> wmOmNoticeIEntityList = systemService.findHql(hqlnotice,id0);
|
||||
for(WmOmNoticeIEntity tnotice:wmOmNoticeIEntityList){
|
||||
noticesum = noticesum + Double.parseDouble(tnotice.getBaseGoodscount());
|
||||
}
|
||||
if(Double.doubleToLongBits(noticesum) != Double.doubleToLongBits(tomsum)){
|
||||
request.setAttribute("jianhuoremark", "订单:"+dfsum.format(noticesum)+" 拣货:"+dfsum.format(tomsum));
|
||||
}else{
|
||||
request.setAttribute("jianhuoremark", "全部拣货,共"+dfsum.format(noticesum));
|
||||
}
|
||||
String tijiunit="立方分米";
|
||||
String zhongliangunit="公斤";
|
||||
try{
|
||||
tijiunit= ResourceUtil.getConfigByName("tijiunit");
|
||||
zhongliangunit=ResourceUtil.getConfigByName("zhongliangunit");
|
||||
}catch (Exception e){
|
||||
}
|
||||
request.setAttribute("tijisum", dfsum.format(tijisum)+tijiunit);
|
||||
request.setAttribute("zhlsum", dfsum.format(zhlsum)+zhongliangunit);
|
||||
request.setAttribute("wmOmQmIList", wmOmQmIEntityList);
|
||||
}catch (Exception e){
|
||||
}
|
||||
return new ModelAndView("com/zzjee/wm/print/jianhuorenwuzhuisu");
|
||||
}
|
||||
@RequestMapping(params = "showlist")
|
||||
public ModelAndView showlist(String id,HttpServletRequest request) {
|
||||
WmOmNoticeHEntity wmOmNoticeHEntity = wmOmNoticeHService.getEntity(WmOmNoticeHEntity.class, id);
|
||||
|
@ -435,6 +558,52 @@ public class WmOmNoticeHController extends BaseController {
|
|||
}
|
||||
return new ModelAndView("com/zzjee/wm/print/zhuisu-print");
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(params = "showgoods")
|
||||
public ModelAndView showgoods(String id,HttpServletRequest request) {
|
||||
WmOmQmIEntity wmOmQmIEntity = wmOmNoticeHService.getEntity(WmOmQmIEntity.class, id);
|
||||
request.setAttribute("wmOmQmIEntity", wmOmQmIEntity);
|
||||
request.setAttribute("comname", ResourceUtil.getConfigByName("comname"));
|
||||
|
||||
System.out.println(id);
|
||||
|
||||
try{
|
||||
MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wmOmQmIEntity.getCusCode());
|
||||
request.setAttribute("cusname",wmOmQmIEntity.getCusCode()+"-"+ mdcus.getZhongWenQch());
|
||||
mdcus.setZuZhiJiGou(mdcus.getZuZhiJiGou().replace(",",""));
|
||||
|
||||
request.setAttribute("MdCusEntity",mdcus);
|
||||
|
||||
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
//获取参数
|
||||
Object goodsid = wmOmQmIEntity.getGoodsId();
|
||||
Object goodspro = wmOmQmIEntity.getProData();
|
||||
|
||||
//===================================================================================
|
||||
//查询-产品
|
||||
String hql0 = "from WmInQmIEntity where proData = ? AND goodsId = ? order by createDate ";
|
||||
String hql1 = "from WmImNoticeHEntity where noticeId = ? order by createDate ";
|
||||
try{
|
||||
List<WmInQmIEntity> WmInQmIEntityList = systemService.findHql(hql0, goodspro,goodsid);//获取行项目
|
||||
if(WmInQmIEntityList!=null&&WmInQmIEntityList.size()>0){
|
||||
String imnoticeid = WmInQmIEntityList.get(0).getImNoticeId();
|
||||
List<WmImNoticeHEntity> WmImNoticeHEntityList = systemService.findHql(hql1, imnoticeid);//获取行项目
|
||||
if(WmInQmIEntityList!=null&&WmInQmIEntityList.size()>0) {
|
||||
WmImNoticeHEntity wmImNoticeHEntity = WmImNoticeHEntityList.get(0);
|
||||
wmImNoticeHEntity.setFuJian(wmImNoticeHEntity.getFuJian().replace(",",""));
|
||||
request.setAttribute("wmimnoticeh",wmImNoticeHEntity);
|
||||
}
|
||||
}
|
||||
}catch ( Exception e){
|
||||
}
|
||||
|
||||
return new ModelAndView("com/zzjee/wm/print/zhuisuitem-print");
|
||||
}
|
||||
|
||||
//
|
||||
/**
|
||||
* easyui AJAX请求数据
|
||||
|
@ -724,6 +893,8 @@ public class WmOmNoticeHController extends BaseController {
|
|||
wmOmNoticeH.setCusCode(wmUtil.getCusCode());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
List<WmOmNoticeIEntity> wmomNoticeIListnew = new ArrayList<WmOmNoticeIEntity>();
|
||||
for (WmOmNoticeIEntity wmomNoticeIEntity : wmOmNoticeIList) {
|
||||
if(!StringUtil.isEmpty(wmomNoticeIEntity.getGoodsId())){
|
||||
|
@ -745,6 +916,9 @@ public class WmOmNoticeHController extends BaseController {
|
|||
}
|
||||
}
|
||||
wmOmNoticeHService.addMain(wmOmNoticeH, wmomNoticeIListnew);
|
||||
|
||||
|
||||
|
||||
Map<String ,Object> map = new HashMap<String ,Object>();
|
||||
map.put("id", wmOmNoticeH.getOmNoticeId());
|
||||
try {
|
||||
|
@ -1476,7 +1650,7 @@ public class WmOmNoticeHController extends BaseController {
|
|||
try{
|
||||
if("hr".equals(ResourceUtil.getConfigByName("wm.ckd"))){
|
||||
// String[] columnNames1 = { "序号", "商品编码", "商品名称", "生产日期", "品质","箱数", "拆零数", "毛重/KG","库存","备注" };
|
||||
String[] columnNames1 = { "序号", "商品编码", "商品名称", "生产日期", "品质","箱数", "拆零数", "毛重/KG","体积/cm³","备注" };
|
||||
String[] columnNames1 = { "序号", "商品编码", "商品名称", "生产日期", "品质","箱数", "拆零数", "毛重/KG","库存","备注" };
|
||||
|
||||
columnNames = columnNames1;
|
||||
}
|
||||
|
@ -1590,7 +1764,7 @@ public class WmOmNoticeHController extends BaseController {
|
|||
try{
|
||||
if("hr".equals(ResourceUtil.getConfigByName("wm.ckd"))) {
|
||||
try{
|
||||
// cell9.setCellValue(wmUtil.getstock(result.get(i).get("goods_id").toString()));
|
||||
cell9.setCellValue(wmUtil.getstock(result.get(i).get("goods_id").toString()));
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package com.zzjee.wm.service.impl;
|
||||
import com.zzjee.md.entity.MdCusEntity;
|
||||
import com.zzjee.md.entity.MvGoodsEntity;
|
||||
import com.zzjee.tms.entity.TmsYwDingdanEntity;
|
||||
import com.zzjee.wm.service.WmOmNoticeHServiceI;
|
||||
|
||||
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
||||
|
@ -7,6 +9,7 @@ import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
|
|||
import com.zzjee.wm.entity.WmOmNoticeHEntity;
|
||||
import com.zzjee.wm.entity.WmOmNoticeIEntity;
|
||||
|
||||
import org.jeecgframework.core.util.*;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
@ -14,9 +17,6 @@ import java.util.List;
|
|||
|
||||
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 java.util.UUID;
|
||||
|
@ -37,7 +37,13 @@ public class WmOmNoticeHServiceImpl extends CommonServiceImpl implements WmOmNot
|
|||
List<WmOmNoticeIEntity> wmOmNoticeIList){
|
||||
//保存主信息
|
||||
this.save(wmOmNoticeH);
|
||||
|
||||
Double jishu = 0.00;
|
||||
Double tiji=0.00;
|
||||
Double zhongl = 0.00;
|
||||
Double chang = 0.00;
|
||||
Double kuan = 0.00;
|
||||
Double gao = 0.00;
|
||||
String huowu = "";
|
||||
/**保存-出货商品明细*/
|
||||
for(WmOmNoticeIEntity wmOmNoticeI:wmOmNoticeIList){
|
||||
//外键设置
|
||||
|
@ -45,6 +51,7 @@ public class WmOmNoticeHServiceImpl extends CommonServiceImpl implements WmOmNot
|
|||
MvGoodsEntity mvgoods = new MvGoodsEntity();
|
||||
mvgoods = this.findUniqueByProperty(MvGoodsEntity.class, "goodsCode", wmOmNoticeI.getGoodsId()) ;
|
||||
if(mvgoods!=null){
|
||||
huowu=huowu+mvgoods.getGoodsName();
|
||||
wmOmNoticeI.setGoodsName(mvgoods.getGoodsName());
|
||||
try{
|
||||
wmOmNoticeI.setBaseUnit(mvgoods.getBaseunit());
|
||||
|
@ -54,6 +61,16 @@ public class WmOmNoticeHServiceImpl extends CommonServiceImpl implements WmOmNot
|
|||
}else{
|
||||
wmOmNoticeI.setBaseGoodscount(wmOmNoticeI.getGoodsQua());
|
||||
}
|
||||
try{
|
||||
tiji= tiji+ Double.parseDouble(wmOmNoticeI.getBaseGoodscount())*Double.parseDouble(mvgoods.getTiJiCm());
|
||||
zhongl= zhongl+ Double.parseDouble(wmOmNoticeI.getBaseGoodscount())*Double.parseDouble(mvgoods.getZhlKg());
|
||||
// chang= chang+ Double.parseDouble(wmOmNoticeI.getBaseGoodscount())*Double.parseDouble(mvgoods.get());
|
||||
// kuan= kuan+ Double.parseDouble(wmOmNoticeI.getBaseGoodscount())*Double.parseDouble(mvgoods.getZhlKg());
|
||||
// gao= gao+ Double.parseDouble(wmOmNoticeI.getBaseGoodscount())*Double.parseDouble(mvgoods.getZhlKg());
|
||||
|
||||
jishu = jishu + Double.parseDouble(wmOmNoticeI.getBaseGoodscount());
|
||||
}catch (Exception e){
|
||||
}
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
|
@ -68,6 +85,37 @@ public class WmOmNoticeHServiceImpl extends CommonServiceImpl implements WmOmNot
|
|||
wmOmNoticeI.setOmBeizhu(wmOmNoticeH.getOmBeizhu());
|
||||
this.save(wmOmNoticeI);
|
||||
}
|
||||
|
||||
if("yes".equals(ResourceUtil.getConfigByName("wms.totms"))){
|
||||
try{
|
||||
TmsYwDingdanEntity tmsYwDingdanEntity = new TmsYwDingdanEntity();
|
||||
MdCusEntity mdcus = this.findUniqueByProperty(MdCusEntity.class,"keHuBianMa",wmOmNoticeH.getCusCode());
|
||||
tmsYwDingdanEntity.setHwshjs(jishu.toString());
|
||||
tmsYwDingdanEntity.setTiji(tiji.toString());
|
||||
tmsYwDingdanEntity.setZhongl(zhongl.toString());
|
||||
tmsYwDingdanEntity.setChang(chang.toString());
|
||||
tmsYwDingdanEntity.setKuan(kuan.toString());
|
||||
tmsYwDingdanEntity.setGao(gao.toString());
|
||||
tmsYwDingdanEntity.setHuowu(huowu);
|
||||
tmsYwDingdanEntity.setCreateDate(DateUtils.getDate());
|
||||
tmsYwDingdanEntity.setUsername(mdcus.getKeHuBianMa());
|
||||
tmsYwDingdanEntity.setFahuoren(mdcus.getZhongWenQch());
|
||||
tmsYwDingdanEntity.setFhrdh(mdcus.getDianHua());
|
||||
tmsYwDingdanEntity.setFhrdz(mdcus.getDiZhi());
|
||||
tmsYwDingdanEntity.setSiji(wmOmNoticeH.getReCarno());//司机
|
||||
tmsYwDingdanEntity.setShouhuoren(wmOmNoticeH.getDelvMember());
|
||||
tmsYwDingdanEntity.setShrdh(wmOmNoticeH.getDelvAddr());
|
||||
tmsYwDingdanEntity.setShrsj(wmOmNoticeH.getDelvMobile());
|
||||
tmsYwDingdanEntity.setYwddbz(wmOmNoticeH.getOmBeizhu());
|
||||
tmsYwDingdanEntity.setYwkhdh(wmOmNoticeH.getOmNoticeId());
|
||||
tmsYwDingdanEntity.setZhuangtai("已下单");
|
||||
this.save(tmsYwDingdanEntity);
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//执行新增操作配置的sql增强
|
||||
this.doAddSql(wmOmNoticeH);
|
||||
}
|
||||
|
|
|
@ -462,4 +462,5 @@ public class wmUtil {
|
|||
return flag;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -86,6 +86,23 @@ public class ResourceUtil {
|
|||
|
||||
return null;
|
||||
}
|
||||
public static final TSUser getSessionUser() {
|
||||
HttpSession session = ContextHolderUtils.getSession();
|
||||
if(ClientManager.getInstance().getClient(session.getId())!=null){
|
||||
return ClientManager.getInstance().getClient(session.getId()).getUser();
|
||||
//update-begin--update---author:scott-----------date:20151218-------for:解决分布式登录问题-------
|
||||
}else{
|
||||
TSUser u = (TSUser) session.getAttribute(ResourceUtil.LOCAL_CLINET_USER);
|
||||
Client client = new Client();
|
||||
client.setIp("");
|
||||
client.setLogindatetime(new Date());
|
||||
client.setUser(u);
|
||||
ClientManager.getInstance().addClinet(session.getId(), client);
|
||||
}
|
||||
//update-end--update---author:scott-----------date:20151218-------for:解决分布式登录问题-------
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static final List<TSRoleFunction> getSessionTSRoleFunction(String roleId) {
|
||||
HttpSession session = ContextHolderUtils.getSession();
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
package org.jeecgframework.jwt.util;
|
||||
|
||||
import org.jeecgframework.jwt.util.menu.ResponseMessageCodeEnum;
|
||||
|
||||
/**
|
||||
* restful 接口响应返回结构
|
||||
* @author scott
|
||||
* @param <T>
|
||||
*/
|
||||
public class ResponseMessage<T> {
|
||||
|
||||
private String respCode;
|
||||
private String respMsg;
|
||||
private T data;
|
||||
private boolean ok;
|
||||
|
||||
public ResponseMessage() {
|
||||
}
|
||||
|
||||
public ResponseMessage(ResponseMessageCodeEnum codeEnum, String message) {
|
||||
this.respCode = codeEnum.getCode();
|
||||
this.respMsg = message;
|
||||
}
|
||||
|
||||
public ResponseMessage(ResponseMessageCodeEnum codeEnum, String message, boolean ok, T data) {
|
||||
this.respCode = codeEnum.getCode();
|
||||
this.respMsg = message;
|
||||
this.ok = ok;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getRespCode() {
|
||||
return respCode;
|
||||
}
|
||||
|
||||
public void setRespCode(String respCode) {
|
||||
this.respCode = respCode;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return respMsg;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.respMsg = message;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public boolean isOk() {
|
||||
return ok;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package org.jeecgframework.jwt.util;
|
||||
|
||||
import org.jeecgframework.jwt.util.menu.ResponseMessageCodeEnum;
|
||||
|
||||
/**
|
||||
* restful 接口响应返回结果工具类
|
||||
* @author scott
|
||||
*
|
||||
*/
|
||||
public class Result {
|
||||
|
||||
private static final ResponseMessage RESPONSE_MESSAGE_SUCCESS = new ResponseMessage(ResponseMessageCodeEnum.SUCCESS, "成功",true,null);
|
||||
|
||||
public static ResponseMessage success() {
|
||||
return RESPONSE_MESSAGE_SUCCESS;
|
||||
}
|
||||
|
||||
public static <T> ResponseMessage<T> success(T t) {
|
||||
return new ResponseMessage(ResponseMessageCodeEnum.SUCCESS, "成功", true, t);
|
||||
}
|
||||
|
||||
public static <T> ResponseMessage<T> success(ResponseMessageCodeEnum codeEnum, T t) {
|
||||
return new ResponseMessage(codeEnum, "", true, t);
|
||||
}
|
||||
|
||||
public static <T> ResponseMessage<T> success(ResponseMessageCodeEnum codeEnum, String message, T t) {
|
||||
return new ResponseMessage(codeEnum, message, true, t);
|
||||
}
|
||||
|
||||
public static ResponseMessage error() {
|
||||
return error("失败");
|
||||
}
|
||||
|
||||
public static ResponseMessage error(String message) {
|
||||
return error(ResponseMessageCodeEnum.ERROR, message);
|
||||
}
|
||||
|
||||
public static ResponseMessage error(ResponseMessageCodeEnum codeEnum, String message) {
|
||||
return error(codeEnum, message, null);
|
||||
}
|
||||
|
||||
public static <T> ResponseMessage<T> error(ResponseMessageCodeEnum codeEnum, String message, T t) {
|
||||
return new ResponseMessage(codeEnum, message, false, t);
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验失败错误结果
|
||||
* @param <T>
|
||||
* @param t
|
||||
* @return
|
||||
*/
|
||||
public static <T> ResponseMessage<T> errorValid(T t) {
|
||||
return new ResponseMessage(ResponseMessageCodeEnum.VALID_ERROR, "校验失败", false, t);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package org.jeecgframework.jwt.util.menu;
|
||||
|
||||
/**
|
||||
* 接口返回状态码
|
||||
* @author scott
|
||||
*
|
||||
*/
|
||||
public enum ResponseMessageCodeEnum {
|
||||
|
||||
SUCCESS("0"),
|
||||
ERROR("-1"),
|
||||
VALID_ERROR("1000"),//校验失败
|
||||
SAVE_SUCCESS("r0001"),
|
||||
UPDATE_SUCCESS("r0002"),
|
||||
REMOVE_SUCCESS("r0003");
|
||||
|
||||
private String code;
|
||||
|
||||
ResponseMessageCodeEnum(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
|
@ -27,6 +27,8 @@ public class TSUser extends TSBaseUser implements java.io.Serializable {
|
|||
@Excel(name = "邮箱")
|
||||
private String email;// 邮箱
|
||||
/**创建时间*/
|
||||
private String userType;//用户类型 1:系统用户 \2接口用户 3 公司权限 4 当前用户
|
||||
|
||||
private java.util.Date createDate;
|
||||
/**创建人ID*/
|
||||
private java.lang.String createBy;
|
||||
|
@ -38,6 +40,18 @@ public class TSUser extends TSBaseUser implements java.io.Serializable {
|
|||
private java.lang.String updateBy;
|
||||
/**修改人名称*/
|
||||
private java.lang.String updateName;
|
||||
|
||||
|
||||
@Column(name = "user_type")
|
||||
public String getUserType() {
|
||||
return userType;
|
||||
}
|
||||
|
||||
public void setUserType(String userType) {
|
||||
this.userType = userType;
|
||||
}
|
||||
|
||||
|
||||
@Column(name = "signatureFile", length = 100)
|
||||
public String getSignatureFile() {
|
||||
return this.signatureFile;
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
</property>
|
||||
<property name="excludeContainUrls">
|
||||
<list>
|
||||
|
||||
<value>systemController/showOrDownByurl.do</value>
|
||||
<value>wmOmNoticeHController.do</value>
|
||||
</list>
|
||||
</property>
|
||||
|
|
|
@ -7,7 +7,7 @@ templatepath=docTemp
|
|||
timerun=run
|
||||
uploadpath=upload
|
||||
|
||||
webUploadpath=D://upFiles
|
||||
webUploadpath=C://upFiles
|
||||
showAndDownUrl=systemController/showOrDownByurl.do?dbPath=
|
||||
|
||||
office_home=D://OpenOffice
|
||||
|
@ -204,8 +204,10 @@ wm.ckd=hr
|
|||
wm.rkd=hr
|
||||
|
||||
|
||||
show.noticeurl=http://localhost:8081/zzjee/wmOmNoticeHController.do?showlist&id=
|
||||
show.goodsurl=http://localhost:8081/zzjee/wmOmNoticeHController.do?showgoods&
|
||||
show.noticeurl=http://120.78.150.43/wmstest/wmOmNoticeHController.do?showlist&id=
|
||||
show.goodsurl=http://120.78.150.43/wmstest/wmOmNoticeHController.do?showgoods&id=
|
||||
|
||||
wms.totms=yes
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -230,8 +230,17 @@
|
|||
<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">
|
||||
<t:webUploader auto="true" name="zuZhiJiGou" duplicate="true" fileNumLimit="3"></t:webUploader>
|
||||
|
||||
|
||||
<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;">
|
||||
|
|
|
@ -222,7 +222,20 @@
|
|||
<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">
|
||||
|
||||
<t:webUploader auto="true" pathValues="${mdCusPage.zuZhiJiGou}" name="zuZhiJiGou" duplicate="true" fileNumLimit="1"></t:webUploader>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>车辆管理</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsMdCheliangController.do?doAdd" >
|
||||
<input id="id" name="id" type="hidden" value="${tmsMdCheliangPage.id }">
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsMdCheliangPage.createName }">
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsMdCheliangPage.createBy }">
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsMdCheliangPage.createDate }">
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsMdCheliangPage.updateName }">
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsMdCheliangPage.updateBy }">
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsMdCheliangPage.updateDate }">
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsMdCheliangPage.sysOrgCode }">
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsMdCheliangPage.sysCompanyCode }">
|
||||
<input id="bpmStatus" name="bpmStatus" type="hidden" value="${tmsMdCheliangPage.bpmStatus }">
|
||||
<fieldset class="step">
|
||||
<div class="form">
|
||||
<label class="Validform_label">车牌号:</label>
|
||||
<input id="chepaihao" name="chepaihao" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">车型:</label>
|
||||
<input id="chexing" name="chexing" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">最大体积:</label>
|
||||
<input id="zuidatiji" name="zuidatiji" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">载重:</label>
|
||||
<input id="zaizhong" name="zaizhong" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">载人数:</label>
|
||||
<input id="zairen" name="zairen" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">准驾驾照:</label>
|
||||
<input id="jiazhao" name="jiazhao" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否可用:</label>
|
||||
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdCheliangPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">备注:</label>
|
||||
<input id="beizhu" name="beizhu" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">默认司机:</label>
|
||||
<input id="username" name="username" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
|
||||
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">gps:</label>
|
||||
<input id="gpsid" name="gpsid" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsMdCheliang.js"></script>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>车辆管理</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsMdCheliangController.do?doUpdate" >
|
||||
<input id="id" name="id" type="hidden" value="${tmsMdCheliangPage.id }"/>
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsMdCheliangPage.createName }"/>
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsMdCheliangPage.createBy }"/>
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsMdCheliangPage.createDate }"/>
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsMdCheliangPage.updateName }"/>
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsMdCheliangPage.updateBy }"/>
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsMdCheliangPage.updateDate }"/>
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsMdCheliangPage.sysOrgCode }"/>
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsMdCheliangPage.sysCompanyCode }"/>
|
||||
<input id="bpmStatus" name="bpmStatus" type="hidden" value="${tmsMdCheliangPage.bpmStatus }"/>
|
||||
<fieldset class="step">
|
||||
<div class="form">
|
||||
<label class="Validform_label">车牌号:</label>
|
||||
<input id="chepaihao" name="chepaihao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.chepaihao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">车型:</label>
|
||||
<input id="chexing" name="chexing" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.chexing}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">最大体积:</label>
|
||||
<input id="zuidatiji" name="zuidatiji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.zuidatiji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">载重:</label>
|
||||
<input id="zaizhong" name="zaizhong" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.zaizhong}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">载人数:</label>
|
||||
<input id="zairen" name="zairen" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.zairen}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">准驾驾照:</label>
|
||||
<input id="jiazhao" name="jiazhao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.jiazhao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否可用:</label>
|
||||
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdCheliangPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">备注:</label>
|
||||
<input id="beizhu" name="beizhu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.beizhu}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">默认司机:</label>
|
||||
<input id="username" name="username" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.username}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">gps:</label>
|
||||
<input id="gpsid" name="gpsid" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.gpsid}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsMdCheliang.js"></script>
|
|
@ -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));
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<div class="easyui-layout" fit="true">
|
||||
<div region="center" style="padding:0px;border:0px">
|
||||
<t:datagrid name="tmsMdCheliangList" checkbox="true" pagination="true" fitColumns="true" title="车辆管理" actionUrl="tmsMdCheliangController.do?datagrid" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="车牌号" field="chepaihao" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="车型" field="chexing" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="最大体积" field="zuidatiji" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="载重" field="zaizhong" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="载人数" field="zairen" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="准驾驾照" field="jiazhao" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="是否可用" field="zhuangtai" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
|
||||
<t:dgCol title="备注" field="beizhu" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="默认司机" field="username" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="gps" field="gpsid" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<t:dgDelOpt title="删除" url="tmsMdCheliangController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
|
||||
<t:dgToolBar title="录入" icon="icon-add" url="tmsMdCheliangController.do?goAdd" funname="add"></t:dgToolBar>
|
||||
<t:dgToolBar title="编辑" icon="icon-edit" url="tmsMdCheliangController.do?goUpdate" funname="update"></t:dgToolBar>
|
||||
<t:dgToolBar title="批量删除" icon="icon-remove" url="tmsMdCheliangController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsMdCheliangController.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/tms/tmsMdCheliangList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsMdCheliangController.do?upload', "tmsMdCheliangList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsMdCheliangController.do?exportXls","tmsMdCheliangList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsMdCheliangController.do?exportXlsByT","tmsMdCheliangList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,76 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>客户地址</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsMdDzController.do?doAdd" >
|
||||
<input id="id" name="id" type="hidden" value="${tmsMdDzPage.id }">
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsMdDzPage.createName }">
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsMdDzPage.createBy }">
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsMdDzPage.createDate }">
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsMdDzPage.updateName }">
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsMdDzPage.updateBy }">
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsMdDzPage.updateDate }">
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsMdDzPage.sysOrgCode }">
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsMdDzPage.sysCompanyCode }">
|
||||
<input id="bpmStatus" name="bpmStatus" type="hidden" value="${tmsMdDzPage.bpmStatus }">
|
||||
<fieldset class="step">
|
||||
<div class="form">
|
||||
<label class="Validform_label">用户:</label>
|
||||
<input id="username" name="username" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">联系人:</label>
|
||||
<input id="lianxiren" name="lianxiren" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">联系电话:</label>
|
||||
<input id="dianhua" name="dianhua" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">详细地址:</label>
|
||||
<input id="xiangxidizhi" name="xiangxidizhi" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">省份:</label>
|
||||
<input id="shengfen" name="shengfen" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">城市:</label>
|
||||
<input id="chengshi" name="chengshi" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">区域:</label>
|
||||
<input id="quyu" name="quyu" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">默认地址:</label>
|
||||
<t:dictSelect field="morendizhi" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdDzPage.morendizhi}" hasLabel="false" title="默认地址"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否可用:</label>
|
||||
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdDzPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">地址类型:</label>
|
||||
<input id="dizhileixing" name="dizhileixing" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsMdDz.js"></script>
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>客户地址</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsMdDzController.do?doUpdate" >
|
||||
<input id="id" name="id" type="hidden" value="${tmsMdDzPage.id }"/>
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsMdDzPage.createName }"/>
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsMdDzPage.createBy }"/>
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsMdDzPage.createDate }"/>
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsMdDzPage.updateName }"/>
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsMdDzPage.updateBy }"/>
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsMdDzPage.updateDate }"/>
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsMdDzPage.sysOrgCode }"/>
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsMdDzPage.sysCompanyCode }"/>
|
||||
<input id="bpmStatus" name="bpmStatus" type="hidden" value="${tmsMdDzPage.bpmStatus }"/>
|
||||
<fieldset class="step">
|
||||
<div class="form">
|
||||
<label class="Validform_label">用户:</label>
|
||||
<input id="username" name="username" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.username}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">联系人:</label>
|
||||
<input id="lianxiren" name="lianxiren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.lianxiren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">联系电话:</label>
|
||||
<input id="dianhua" name="dianhua" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.dianhua}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">详细地址:</label>
|
||||
<input id="xiangxidizhi" name="xiangxidizhi" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.xiangxidizhi}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">省份:</label>
|
||||
<input id="shengfen" name="shengfen" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.shengfen}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">城市:</label>
|
||||
<input id="chengshi" name="chengshi" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.chengshi}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">区域:</label>
|
||||
<input id="quyu" name="quyu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.quyu}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">默认地址:</label>
|
||||
<t:dictSelect field="morendizhi" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdDzPage.morendizhi}" hasLabel="false" title="默认地址"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否可用:</label>
|
||||
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdDzPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
<div class="form">
|
||||
<label class="Validform_label">地址类型:</label>
|
||||
<input id="dizhileixing" name="dizhileixing" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdDzPage.dizhileixing}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsMdDz.js"></script>
|
|
@ -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));
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<div class="easyui-layout" fit="true">
|
||||
<div region="center" style="padding:0px;border:0px">
|
||||
<t:datagrid name="tmsMdDzList" singleSelect="true" checkbox="true" pagination="true" fitColumns="true" title="客户地址" actionUrl="tmsMdDzController.do?datagridchoose" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="id" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<%--<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="用户" field="username" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="联系人" field="lianxiren" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="联系电话" field="dianhua" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="详细地址" field="xiangxidizhi" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<%--<t:dgCol title="省份" field="shengfen" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="城市" field="chengshi" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="区域" field="quyu" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="默认地址" field="morendizhi" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="是否可用" field="zhuangtai" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="地址类型" field="dizhileixing" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
|
||||
<%--<t:dgDelOpt title="删除" url="tmsMdDzController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
|
||||
<%--<t:dgToolBar title="录入" icon="icon-add" url="tmsMdDzController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tmsMdDzController.do?goUpdate" funname="update"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tmsMdDzController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="查看" icon="icon-search" url="tmsMdDzController.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/tms/tmsMdDzList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsMdDzController.do?upload', "tmsMdDzList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsMdDzController.do?exportXls","tmsMdDzList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsMdDzController.do?exportXlsByT","tmsMdDzList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,61 @@
|
|||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<div class="easyui-layout" fit="true">
|
||||
<div region="center" style="padding:0px;border:0px">
|
||||
<t:datagrid name="tmsMdDzList" checkbox="true" pagination="true" fitColumns="true" title="客户地址" actionUrl="tmsMdDzController.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="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="流程状态" field="bpmStatus" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="用户" field="username" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="联系人" field="lianxiren" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="联系电话" field="dianhua" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="详细地址" field="xiangxidizhi" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="省份" field="shengfen" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="城市" field="chengshi" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="区域" field="quyu" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="默认地址" field="morendizhi" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
|
||||
<t:dgCol title="是否可用" field="zhuangtai" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
|
||||
<t:dgCol title="地址类型" field="dizhileixing" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<t:dgDelOpt title="删除" url="tmsMdDzController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
|
||||
<t:dgToolBar title="录入" icon="icon-add" url="tmsMdDzController.do?goAdd" funname="add"></t:dgToolBar>
|
||||
<t:dgToolBar title="编辑" icon="icon-edit" url="tmsMdDzController.do?goUpdate" funname="update"></t:dgToolBar>
|
||||
<t:dgToolBar title="批量删除" icon="icon-remove" url="tmsMdDzController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsMdDzController.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/tms/tmsMdDzList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsMdDzController.do?upload', "tmsMdDzList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsMdDzController.do?exportXls","tmsMdDzList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsMdDzController.do?exportXlsByT","tmsMdDzList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,364 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>运输订单</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
<!-- 自动补全 -->
|
||||
<link rel="stylesheet" href="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.css" type="text/css"></link>
|
||||
<script type="text/javascript" src="plug-in/jquery/jquery-autocomplete/jquery.autocomplete.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" >
|
||||
<input id="id" name="id" type="hidden" value="${tmsYwDingdanPage.id }">
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsYwDingdanPage.createName }">
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsYwDingdanPage.createBy }">
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsYwDingdanPage.createDate }">
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsYwDingdanPage.updateName }">
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsYwDingdanPage.updateBy }">
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsYwDingdanPage.updateDate }">
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsYwDingdanPage.sysOrgCode }">
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsYwDingdanPage.sysCompanyCode }">
|
||||
<input id="zhuangtai" name="zhuangtai" type="hidden" value="已下单" />
|
||||
<table border="1pt" style="width: 750px ">
|
||||
<tr><td colspan="4"><p style="font-size: large">发货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div >
|
||||
<label >发货人(输入姓名,电话地址搜索;如果是新的收货人,请按照:姓名-电话-地址 格式输入) </label>
|
||||
<%--<input type="hidden" id="username" name="username" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
<t:autocomplete datatype="*" entityName="VTmsDzEntity" searchField="dizhi" name="fahuoren"></t:autocomplete>
|
||||
<%--<input id="fahuoren" name="fahuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<%--<td>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >发货人电话:</label>--%>
|
||||
<%--<input id="fhrdh" name="fhrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
<%--<td>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >发货人地址:</label>--%>
|
||||
<%--<input id="fhrdz" name="fhrdz" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">收货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div >
|
||||
<label>
|
||||
收货人(输入姓名,电话地址搜索;如果是新的收货人,请按照:姓名-电话-地址 格式输入)
|
||||
</label>
|
||||
<%--<input id="shouhuoren" name="shouhuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
<t:autocomplete datatype="*" entityName="VTmsDzEntity" searchField="dizhi" name="shouhuoren"></t:autocomplete>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<%--<td>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >收货人电话:</label>--%>
|
||||
<%--<input id="shrsj" name="shrsj" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
<%--<td>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >收货人地址:</label>--%>
|
||||
<%--<input id="shrdh" name="shrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" />--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">货物信息 </p></td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div >
|
||||
<label >货物</label>
|
||||
<input id="huowu" name="huowu" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >件数</label>
|
||||
<input id="hwshjs" name="hwshjs" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >重量</label>
|
||||
<input id="zhongl" name="zhongl" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >送货方式</label>
|
||||
<t:dictSelect field="hwshfs" type="radio" typeGroupCode="tms_thfs" defaultVal="送达" hasLabel="false" title="送货方式"></t:dictSelect>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div >
|
||||
<label >长米</label>
|
||||
<input id="chang" name="chang" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >宽米</label>
|
||||
<input id="kuan" name="kuan" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >高米</label>
|
||||
<input id="gao" name="gao" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >立方米</label>
|
||||
<input id="tiji" name="tiji" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">其他信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div >
|
||||
<label >下单备注</label>
|
||||
<input id="ywddbz" name="ywddbz" type="text" style="width: 120px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywddbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div >
|
||||
<label >代收款金额</label>
|
||||
<input id="daishouk" name="daishouk" type="text" style="width: 120px" class="inputxt" ignore="ignore" />
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div >
|
||||
<label >客户单号:</label>
|
||||
<input id="ywkhdh" name="ywkhdh" type="text" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywkhdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div >
|
||||
<label >是否等通知</label>
|
||||
<t:dictSelect field="dengtongzhi" type="radio" typeGroupCode="sf_yn" defaultVal="N" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<%--<legend>发货人信息 </legend>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >单号:</label>--%>
|
||||
<%--<input id="fadh" name="fadh" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >下单人:</label>--%>
|
||||
<%--<input id="username" name="username" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >下单人名字:</label>--%>
|
||||
<%--<input id="xdrmz" name="xdrmz" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
|
||||
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >发货人电话:</label>--%>
|
||||
<%--<input id="fhrdh" name="fhrdh" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
|
||||
<%--</div>--%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<%--<legend>派车信息 </legend>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >车号:</label>--%>
|
||||
<%--<input id="chehao" name="chehao" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >司机:</label>--%>
|
||||
<%--<input id="siji" name="siji" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >预计送达时间:</label>--%>
|
||||
<%--<input id="yjsdsj" name="yjsdsj" type="text" style="width: 120px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<legend>回单信息 </legend>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >送达时间:</label>--%>
|
||||
<%--<input id="sdsj" name="sdsj" type="text" style="width: 120px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
<%--<div >--%>
|
||||
<%--<label >价格:</label>--%>
|
||||
<%--<input id="jiage" name="jiage" type="text" style="width: 120px" class="inputxt" ignore="ignore" />--%>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
|
||||
<%--<div >--%>
|
||||
<%--<label >回单附件:</label>--%>
|
||||
<%--<t:webUploader name="huidanfj" bizType="photosucai" auto="true" extensions="doc,txt,jpg" buttonStyle="btn-green btn-L" ></t:webUploader>--%>
|
||||
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
|
||||
<div style="margin:3px auto"><button onclick="sub('formobj');">下单</button></div>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsYwDingdan.js"></script>
|
||||
<script src="plug-in/jquery-plugs/form/jquery.form.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
neibuClickFlag = true;
|
||||
// $('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//表单提交
|
||||
function sub(formid){
|
||||
console.log('1');
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"tmsYwDingdanController.do?doAdd",
|
||||
data:$("#"+formid).serialize(),
|
||||
async:true,
|
||||
success:function (data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
var msg = d.msg;
|
||||
tip(msg);
|
||||
$("#fahuoren").val("");
|
||||
$("#shouhuoren").val("");
|
||||
$("#huowu").val("");
|
||||
$("#hwshjs").val("");
|
||||
$("#zhongl").val("");
|
||||
$("#chang").val("");
|
||||
$("#kuan").val("");
|
||||
$("#gao").val("");
|
||||
$("#tiji").val("");
|
||||
$("#ywddbz").val("");
|
||||
$("#daishouk").val("");
|
||||
$("#ywkhdh").val("");
|
||||
|
||||
} else {
|
||||
tip(d.msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
|
@ -0,0 +1,660 @@
|
|||
<%@ 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>
|
||||
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
<script type="text/javascript">
|
||||
//编写自定义JS代码
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tmsYwDingdanController.do?doAdd" tiptype="1" callback="jeecgFormFileCallBack@Override">
|
||||
<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="fadh" name="fadh" 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 class="col-xs-3 text-center">
|
||||
<b>下单人:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="username" name="username" 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="fahuoren" name="fahuoren" 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 class="col-xs-3 text-center">
|
||||
<b>发货人电话:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="fhrdh" name="fhrdh" 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="fhrdz" name="fhrdz" 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 class="col-xs-3 text-center">
|
||||
<b>收货人:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="shouhuoren" name="shouhuoren" 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="shrdh" name="shrdh" 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 class="col-xs-3 text-center">
|
||||
<b>车号:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="chehao" name="chehao" 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="huowu" name="huowu" 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 class="col-xs-3 text-center">
|
||||
<b>长米:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="chang" name="chang" 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="kuan" name="kuan" 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 class="col-xs-3 text-center">
|
||||
<b>高米:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="gao" name="gao" 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="tiji" name="tiji" 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 class="col-xs-3 text-center">
|
||||
<b>重量:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="zhongl" name="zhongl" 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="daishouk" name="daishouk" 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 class="col-xs-3 text-center">
|
||||
<b>是否等通知:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<t:dictSelect field="dengtongzhi" type="radio" extendJson="{class:'form-control'}" typeGroupCode="sf_yn" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
<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="jiage" name="jiage" 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 class="col-xs-3 text-center">
|
||||
<b>下单附件:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<table></table>
|
||||
<div class="form jeecgDetail">
|
||||
<script type="text/javascript">
|
||||
var serverMsg="";
|
||||
$(function(){
|
||||
$('#xiadanfj').uploadify({
|
||||
buttonText:'添加图片',
|
||||
auto:false,
|
||||
progressData:'speed',
|
||||
multi:true,
|
||||
height:25,
|
||||
overrideEvents:['onDialogClose'],
|
||||
fileTypeDesc:'文件格式:',
|
||||
queueID:'filediv_xiadanfj',
|
||||
fileSizeLimit:'15MB',
|
||||
swf:'plug-in/uploadify/uploadify.swf',
|
||||
uploader:'cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
|
||||
onUploadStart : function(file) {
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$('#xiadanfj').uploadify("settings", "formData", {
|
||||
'cgFormId':cgFormId,
|
||||
'cgFormName':'tms_yw_dingdan',
|
||||
'cgFormField':'XIADANFJ'
|
||||
});
|
||||
} ,
|
||||
onQueueComplete : function(queueData) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(serverMsg);
|
||||
frameElement.api.close();
|
||||
},
|
||||
onUploadSuccess : function(file, data, response) {
|
||||
var d=$.parseJSON(data);
|
||||
if(d.success){
|
||||
var win = frameElement.api.opener;
|
||||
serverMsg = d.msg;
|
||||
}
|
||||
},
|
||||
onFallback: function() {
|
||||
tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")
|
||||
},
|
||||
onSelectError: function(file, errorCode, errorMsg) {
|
||||
switch (errorCode) {
|
||||
case - 100 : tip("上传的文件数量已经超出系统限制的" + $('#file').uploadify('settings', 'queueSizeLimit') + "个文件!");
|
||||
break;
|
||||
case - 110 : tip("文件 [" + file.name + "] 大小超出系统限制的" + $('#file').uploadify('settings', 'fileSizeLimit') + "大小!");
|
||||
break;
|
||||
case - 120 : tip("文件 [" + file.name + "] 大小异常!");
|
||||
break;
|
||||
case - 130 : tip("文件 [" + file.name + "] 类型不正确!");
|
||||
break;
|
||||
}
|
||||
},
|
||||
onUploadProgress: function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<span id="file_uploadspan"><input type="file" name="xiadanfj" id="xiadanfj" /></span>
|
||||
</div>
|
||||
<div class="form" id="filediv_xiadanfj"></div>
|
||||
<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">
|
||||
<table></table>
|
||||
<div class="form jeecgDetail">
|
||||
<script type="text/javascript">
|
||||
var serverMsg="";
|
||||
$(function(){
|
||||
$('#huidanfj').uploadify({
|
||||
buttonText:'添加图片',
|
||||
auto:false,
|
||||
progressData:'speed',
|
||||
multi:true,
|
||||
height:25,
|
||||
overrideEvents:['onDialogClose'],
|
||||
fileTypeDesc:'文件格式:',
|
||||
queueID:'filediv_huidanfj',
|
||||
fileSizeLimit:'15MB',
|
||||
swf:'plug-in/uploadify/uploadify.swf',
|
||||
uploader:'cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
|
||||
onUploadStart : function(file) {
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$('#huidanfj').uploadify("settings", "formData", {
|
||||
'cgFormId':cgFormId,
|
||||
'cgFormName':'tms_yw_dingdan',
|
||||
'cgFormField':'HUIDANFJ'
|
||||
});
|
||||
} ,
|
||||
onQueueComplete : function(queueData) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(serverMsg);
|
||||
frameElement.api.close();
|
||||
},
|
||||
onUploadSuccess : function(file, data, response) {
|
||||
var d=$.parseJSON(data);
|
||||
if(d.success){
|
||||
var win = frameElement.api.opener;
|
||||
serverMsg = d.msg;
|
||||
}
|
||||
},
|
||||
onFallback: function() {
|
||||
tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")
|
||||
},
|
||||
onSelectError: function(file, errorCode, errorMsg) {
|
||||
switch (errorCode) {
|
||||
case - 100 : tip("上传的文件数量已经超出系统限制的" + $('#file').uploadify('settings', 'queueSizeLimit') + "个文件!");
|
||||
break;
|
||||
case - 110 : tip("文件 [" + file.name + "] 大小超出系统限制的" + $('#file').uploadify('settings', 'fileSizeLimit') + "大小!");
|
||||
break;
|
||||
case - 120 : tip("文件 [" + file.name + "] 大小异常!");
|
||||
break;
|
||||
case - 130 : tip("文件 [" + file.name + "] 类型不正确!");
|
||||
break;
|
||||
}
|
||||
},
|
||||
onUploadProgress: function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<span id="file_uploadspan"><input type="file" name="huidanfj" id="huidanfj" /></span>
|
||||
</div>
|
||||
<div class="form" id="filediv_huidanfj"></div>
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">回单附件</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>状态:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="zhuangtai" name="zhuangtai" 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="xdrmz" name="xdrmz" 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 class="col-xs-3 text-center">
|
||||
<b>司机:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="siji" name="siji" 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="sdsj" name="sdsj" type="text" ignore="ignore" style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">送达时间</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>预计送达时间:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="yjsdsj" name="yjsdsj" type="text" ignore="ignore" style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
|
||||
<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="shrsj" name="shrsj" 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 class="col-xs-3 text-center">
|
||||
<b>送货方式:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwshfs" name="hwshfs" 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="hwshjs" name="hwshjs" 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 class="col-xs-3 text-center">
|
||||
<b>运费:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwyf" name="hwyf" 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="hwxhf" name="hwxhf" 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 class="col-xs-3 text-center">
|
||||
<b>货物总费用:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwzfy" name="hwzfy" 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="ywddbz" name="ywddbz" 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 class="col-xs-3 text-center">
|
||||
<b>派车备注:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="ywpcbz" name="ywpcbz" 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="ywzcbz" name="ywzcbz" 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 class="col-xs-3 text-center">
|
||||
<b>回单备注:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="ywhdbz" name="ywhdbz" 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="ywkhdh" name="ywkhdh" 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 class="col-xs-2 text-center"><b></b></div>
|
||||
<div class="col-xs-4"></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 jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
neibuClickFlag = true;
|
||||
$('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<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/tms/tmsYwDingdan.js"></script>
|
||||
</html>
|
|
@ -0,0 +1,342 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>运输订单</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsYwDingdanController.do?doUpdate" callback="jeecgFormFileCallBack@Override">
|
||||
<input id="id" name="id" type="hidden" value="${tmsYwDingdanPage.id }"/>
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsYwDingdanPage.createName }"/>
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsYwDingdanPage.createBy }"/>
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsYwDingdanPage.createDate }"/>
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsYwDingdanPage.updateName }"/>
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsYwDingdanPage.updateBy }"/>
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsYwDingdanPage.updateDate }"/>
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsYwDingdanPage.sysOrgCode }"/>
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsYwDingdanPage.sysCompanyCode }"/>
|
||||
<input id="xdrmz" name="xdrmz" type="hidden"type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.xdrmz}'/>
|
||||
<input id="username" name="username" type="hidden" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.username}'/>
|
||||
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">单号:</label>--%>
|
||||
<input id="fadh" name="fadh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fadh}'/>
|
||||
<%--<span class="Validform_checktip"></span>--%>
|
||||
<%--</div>--%>
|
||||
|
||||
<table border="1pt" style="width: 1200px ">
|
||||
<tr><td colspan="4"><p style="font-size: large">发货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人:</label>
|
||||
<input id="fahuoren" name="fahuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fahuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人电话:</label>
|
||||
<input id="fhrdh" name="fhrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人地址:</label>
|
||||
<input id="fhrdz" name="fhrdz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">收货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人:</label>
|
||||
<input id="shouhuoren" name="shouhuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shouhuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人电话:</label>
|
||||
<input id="shrsj" name="shrsj" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrsj}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人地址:</label>
|
||||
<input id="shrdh" name="shrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">货物信息 </p></td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">货物:</label>
|
||||
<input id="huowu" name="huowu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.huowu}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">件数:</label>
|
||||
<input id="hwshjs" name="hwshjs" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwshjs}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">重量:</label>
|
||||
<input id="zhongl" name="zhongl" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.zhongl}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">送货方式:</label>
|
||||
<t:dictSelect field="hwshfs" type="radio" typeGroupCode="tms_thfs" defaultVal="${tmsYwDingdanPage.hwshfs}" hasLabel="false" title="送货方式"></t:dictSelect>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">长米:</label>
|
||||
<input id="chang" name="chang" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.chang}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">宽米:</label>
|
||||
<input id="kuan" name="kuan" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.kuan}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">高米:</label>
|
||||
<input id="gao" name="gao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.gao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">立方米:</label>
|
||||
<input id="tiji" name="tiji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.tiji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">其他信息 </p></td></tr>
|
||||
<tr>
|
||||
<%--<td>--%>
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">下单附件:</label>--%>
|
||||
<%--<t:webUploader name="xiadanfj" bizType="photosucai" auto="true" extensions="doc,txt,jpg" buttonStyle="btn-green btn-L" ></t:webUploader>--%>
|
||||
|
||||
<%--<div class="form" id="filediv_xiadanfj"></div>--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">下单备注:</label>
|
||||
<input id="ywddbz" name="ywddbz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywddbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">代收款金额:</label>
|
||||
<input id="daishouk" name="daishouk" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.daishouk}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label >客户单号:</label>
|
||||
<input id="ywkhdh" name="ywkhdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywkhdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否等通知:</label>
|
||||
<t:dictSelect field="dengtongzhi" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsYwDingdanPage.dengtongzhi}" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsYwDingdan.js"></script>
|
||||
<script type="text/javascript">
|
||||
//加载 已存在的 文件
|
||||
$(function(){
|
||||
var table = $("#fileTable");
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "tmsYwDingdanController.do?getFiles&id=" + cgFormId,
|
||||
success: function(data){
|
||||
var arrayFileObj = jQuery.parseJSON(data).obj;
|
||||
|
||||
$.each(arrayFileObj,function(n,file){
|
||||
var fieldName = file.field.toLowerCase();
|
||||
var table = $("#"+fieldName+"_fileTable");
|
||||
var tr = $("<tr style=\"height:34px;\"></tr>");
|
||||
var td_title = $("<td>" + file.title + "</td>")
|
||||
var td_download = $("<td><a href=\"commonController.do?viewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity\" title=\"下载\">下载</a></td>")
|
||||
var td_view = $("<td><a href=\"javascript:void(0);\" onclick=\"openwindow('预览','commonController.do?openViewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)\">预览</a></td>");
|
||||
var td_del = $("<td><a href=\"javascript:void(0)\" class=\"jeecgDetail\" onclick=\"del('cgUploadController.do?delFile&id=" + file.fileKey + "',this)\">删除</a></td>");
|
||||
|
||||
tr.appendTo(table);
|
||||
td_title.appendTo(tr);
|
||||
td_download.appendTo(tr);
|
||||
td_view.appendTo(tr);
|
||||
td_del.appendTo(tr);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 删除图片数据资源
|
||||
*/
|
||||
function del(url,obj){
|
||||
var content = "请问是否要删除该资源";
|
||||
var navigatorName = "Microsoft Internet Explorer";
|
||||
if( navigator.appName == navigatorName ){
|
||||
$.dialog.confirm(content, function(){
|
||||
submit(url,obj);
|
||||
}, function(){
|
||||
});
|
||||
}else{
|
||||
layer.open({
|
||||
title:"提示",
|
||||
content:content,
|
||||
icon:7,
|
||||
yes:function(index){
|
||||
submit(url,obj);
|
||||
},
|
||||
btn:['确定','取消'],
|
||||
btn2:function(index){
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit(url,obj){
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
var msg = d.msg;
|
||||
tip(msg);
|
||||
obj.parentNode.parentNode.parentNode.deleteRow(obj.parentNode.parentNode);
|
||||
} else {
|
||||
tip(d.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
neibuClickFlag = true;
|
||||
$('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,736 @@
|
|||
<%@ 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>
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
<script type="text/javascript">
|
||||
//编写自定义JS代码
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tmsYwDingdanController.do?doUpdate" tiptype="1" callback="jeecgFormFileCallBack@Override">
|
||||
<input type="hidden" id="btn_sub" class="btn_sub"/>
|
||||
<input type="hidden" name="id" value='${tmsYwDingdanPage.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="fadh" name="fadh" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.fadh}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">单号</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>下单人:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="username" name="username" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.username}' />
|
||||
<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="fahuoren" name="fahuoren" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.fahuoren}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">发货人</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>发货人电话:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="fhrdh" name="fhrdh" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.fhrdh}' />
|
||||
<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="fhrdz" name="fhrdz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.fhrdz}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">发货人地址</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>收货人:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="shouhuoren" name="shouhuoren" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.shouhuoren}' />
|
||||
<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="shrdh" name="shrdh" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.shrdh}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">收货人地址</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>车号:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="chehao" name="chehao" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.chehao}' />
|
||||
<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="huowu" name="huowu" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.huowu}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">货物</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>长米:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="chang" name="chang" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.chang}' />
|
||||
<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="kuan" name="kuan" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.kuan}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">宽米</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>高米:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="gao" name="gao" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.gao}' />
|
||||
<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="tiji" name="tiji" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.tiji}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">立方米</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>重量:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="zhongl" name="zhongl" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.zhongl}' />
|
||||
<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="daishouk" name="daishouk" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.daishouk}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">代收款金额</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>是否等通知:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<t:dictSelect field="dengtongzhi" type="radio" extendJson="{class:'form-control'}" typeGroupCode="sf_yn" defaultVal="${tmsYwDingdanPage.dengtongzhi}" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
<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="jiage" name="jiage" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.jiage}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">价格</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>下单附件:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<table id="xiadanfj_fileTable"></table>
|
||||
<table></table>
|
||||
<script type="text/javascript">
|
||||
var serverMsg="";
|
||||
$(function(){
|
||||
$('#xiadanfj').uploadify({
|
||||
buttonText:'添加图片',
|
||||
auto:false,
|
||||
progressData:'speed',
|
||||
multi:true,
|
||||
height:25,
|
||||
overrideEvents:['onDialogClose'],
|
||||
fileTypeDesc:'文件格式:',
|
||||
queueID:'filediv_xiadanfj',
|
||||
fileSizeLimit:'15MB',
|
||||
swf:'plug-in/uploadify/uploadify.swf',
|
||||
uploader:'cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
|
||||
onUploadStart : function(file) {
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$('#xiadanfj').uploadify("settings", "formData", {
|
||||
'cgFormId':cgFormId,
|
||||
'cgFormName':'tms_yw_dingdan',
|
||||
'cgFormField':'XIADANFJ'
|
||||
});
|
||||
} ,
|
||||
onQueueComplete : function(queueData) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(serverMsg);
|
||||
frameElement.api.close();
|
||||
},
|
||||
onUploadSuccess : function(file, data, response) {
|
||||
var d=$.parseJSON(data);
|
||||
if(d.success){
|
||||
var win = frameElement.api.opener;
|
||||
serverMsg = d.msg;
|
||||
}
|
||||
},
|
||||
onFallback: function() {
|
||||
tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")
|
||||
},
|
||||
onSelectError: function(file, errorCode, errorMsg) {
|
||||
switch (errorCode) {
|
||||
case - 100 : tip("上传的文件数量已经超出系统限制的" + $('#file').uploadify('settings', 'queueSizeLimit') + "个文件!");
|
||||
break;
|
||||
case - 110 : tip("文件 [" + file.name + "] 大小超出系统限制的" + $('#file').uploadify('settings', 'fileSizeLimit') + "大小!");
|
||||
break;
|
||||
case - 120 : tip("文件 [" + file.name + "] 大小异常!");
|
||||
break;
|
||||
case - 130 : tip("文件 [" + file.name + "] 类型不正确!");
|
||||
break;
|
||||
}
|
||||
},
|
||||
onUploadProgress: function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<span id="file_uploadspan"><input type="file" name="xiadanfj" id="xiadanfj" /></span>
|
||||
<div class="form" id="filediv_xiadanfj"></div>
|
||||
<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">
|
||||
<table id="huidanfj_fileTable"></table>
|
||||
<table></table>
|
||||
<script type="text/javascript">
|
||||
var serverMsg="";
|
||||
$(function(){
|
||||
$('#huidanfj').uploadify({
|
||||
buttonText:'添加图片',
|
||||
auto:false,
|
||||
progressData:'speed',
|
||||
multi:true,
|
||||
height:25,
|
||||
overrideEvents:['onDialogClose'],
|
||||
fileTypeDesc:'文件格式:',
|
||||
queueID:'filediv_huidanfj',
|
||||
fileSizeLimit:'15MB',
|
||||
swf:'plug-in/uploadify/uploadify.swf',
|
||||
uploader:'cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
|
||||
onUploadStart : function(file) {
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$('#huidanfj').uploadify("settings", "formData", {
|
||||
'cgFormId':cgFormId,
|
||||
'cgFormName':'tms_yw_dingdan',
|
||||
'cgFormField':'HUIDANFJ'
|
||||
});
|
||||
} ,
|
||||
onQueueComplete : function(queueData) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(serverMsg);
|
||||
frameElement.api.close();
|
||||
},
|
||||
onUploadSuccess : function(file, data, response) {
|
||||
var d=$.parseJSON(data);
|
||||
if(d.success){
|
||||
var win = frameElement.api.opener;
|
||||
serverMsg = d.msg;
|
||||
}
|
||||
},
|
||||
onFallback: function() {
|
||||
tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")
|
||||
},
|
||||
onSelectError: function(file, errorCode, errorMsg) {
|
||||
switch (errorCode) {
|
||||
case - 100 : tip("上传的文件数量已经超出系统限制的" + $('#file').uploadify('settings', 'queueSizeLimit') + "个文件!");
|
||||
break;
|
||||
case - 110 : tip("文件 [" + file.name + "] 大小超出系统限制的" + $('#file').uploadify('settings', 'fileSizeLimit') + "大小!");
|
||||
break;
|
||||
case - 120 : tip("文件 [" + file.name + "] 大小异常!");
|
||||
break;
|
||||
case - 130 : tip("文件 [" + file.name + "] 类型不正确!");
|
||||
break;
|
||||
}
|
||||
},
|
||||
onUploadProgress: function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<span id="file_uploadspan"><input type="file" name="huidanfj" id="huidanfj" /></span>
|
||||
<div class="form" id="filediv_huidanfj"></div>
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">回单附件</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>状态:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="zhuangtai" name="zhuangtai" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.zhuangtai}' />
|
||||
<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="xdrmz" name="xdrmz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.xdrmz}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">下单人名字</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>司机:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="siji" name="siji" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.siji}' />
|
||||
<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="sdsj" name="sdsj" type="text" style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" ignore="ignore" value='<fmt:formatDate value='${tmsYwDingdanPage.sdsj}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">送达时间</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>预计送达时间:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="yjsdsj" name="yjsdsj" type="text" style="background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;" class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" ignore="ignore" value='<fmt:formatDate value='${tmsYwDingdanPage.yjsdsj}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>' />
|
||||
<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="shrsj" name="shrsj" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.shrsj}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">收货人电话</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>送货方式:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwshfs" name="hwshfs" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.hwshfs}' />
|
||||
<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="hwshjs" name="hwshjs" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.hwshjs}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">件数</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>运费:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwyf" name="hwyf" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.hwyf}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">运费</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>卸货费:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwxhf" name="hwxhf" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.hwxhf}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">卸货费</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>货物总费用:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="hwzfy" name="hwzfy" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.hwzfy}' />
|
||||
<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="ywddbz" name="ywddbz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.ywddbz}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">下单备注</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>派车备注:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="ywpcbz" name="ywpcbz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.ywpcbz}' />
|
||||
<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="ywzcbz" name="ywzcbz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.ywzcbz}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">装车备注</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-3 text-center">
|
||||
<b>回单备注:</b>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<input id="ywhdbz" name="ywhdbz" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.ywhdbz}' />
|
||||
<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="ywkhdh" name="ywkhdh" type="text" class="form-control" ignore="ignore" value='${tmsYwDingdanPage.ywkhdh}' />
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">客户单号</label>
|
||||
</div>
|
||||
<div class="col-xs-2 text-center"><b></b></div>
|
||||
<div class="col-xs-4"></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(){
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "tmsYwDingdanController.do?getFiles&id=" + cgFormId,
|
||||
success: function(data){
|
||||
var arrayFileObj = jQuery.parseJSON(data).obj;
|
||||
|
||||
$.each(arrayFileObj,function(n,file){
|
||||
var fieldName = file.field.toLowerCase();
|
||||
var table = $("#"+fieldName+"_fileTable");
|
||||
var tr = $("<tr style=\"height:34px;\"></tr>");
|
||||
var title = file.title;
|
||||
if(title.length > 15){
|
||||
title = title.substring(0,12) + "...";
|
||||
}
|
||||
var td_title = $("<td>" + title + "</td>");
|
||||
var td_download = $("<td><a style=\"margin-left:10px;\" href=\"commonController.do?viewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity\" title=\"下载\">下载</a></td>")
|
||||
var td_view = $("<td><a style=\"margin-left:10px;\" href=\"javascript:void(0);\" onclick=\"openwindow('预览','commonController.do?openViewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)\">预览</a></td>");
|
||||
var td_del = $("<td><a style=\"margin-left:10px;\" href=\"javascript:void(0)\" class=\"jeecgDetail\" onclick=\"del('cgUploadController.do?delFile&id=" + file.fileKey + "',this)\">删除</a></td>");
|
||||
tr.appendTo(table);
|
||||
td_title.appendTo(tr);
|
||||
td_download.appendTo(tr);
|
||||
td_view.appendTo(tr);
|
||||
td_del.appendTo(tr);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 删除图片数据资源
|
||||
*/
|
||||
function del(url,obj){
|
||||
var content = "请问是否要删除该资源";
|
||||
var navigatorName = "Microsoft Internet Explorer";
|
||||
if( navigator.appName == navigatorName ){
|
||||
$.dialog.confirm(content, function(){
|
||||
submit(url,obj);
|
||||
}, function(){
|
||||
});
|
||||
}else{
|
||||
layer.open({
|
||||
title:"提示",
|
||||
content:content,
|
||||
icon:7,
|
||||
yes:function(index){
|
||||
submit(url,obj);
|
||||
},
|
||||
btn:['确定','取消'],
|
||||
btn2:function(index){
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit(url,obj){
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
var msg = d.msg;
|
||||
tip(msg);
|
||||
obj.parentNode.parentNode.parentNode.deleteRow(obj.parentNode.parentNode);
|
||||
} else {
|
||||
tip(d.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
neibuClickFlag = true;
|
||||
$('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<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/tms/tmsYwDingdan.js"></script>
|
||||
</html>
|
|
@ -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));
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
<%@ 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="tmsYwDingdanList" sortName="fadh" sortOrder="desc" onDblClick="onedit" checkbox="true" pagination="true" fitColumns="false" title="运输订单" actionUrl="tmsYwDingdanController.do?datagrid" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
|
||||
<t:dgCol title="发货人" field="fahuoren" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="发货人电话" field="fhrdh" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="发货人地址" field="fhrdz" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="收货人电话" field="shrsj" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="车号" field="chehao" hidden="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="件数" field="hwshjs" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="提货方式" field="hwshfs" query="true" dictionary="tms_thfs" queryMode="single" width="80"></t:dgCol>
|
||||
|
||||
<t:dgCol title="长米" field="chang" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="宽米" field="kuan" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="高米" field="gao" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="立方米" field="tiji" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="80"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="80"></t:dgCol>
|
||||
<t:dgCol title="是否等通知" field="dengtongzhi" queryMode="group" dictionary="sf_yn" width="80"></t:dgCol>
|
||||
<%--<t:dgCol title="价格" field="jiage" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="下单附件" field="xiadanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="回单附件" field="huidanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="状态" field="zhuangtai" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<%--<t:dgCol title="下单人名字" field="xdrmz" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="司机" field="siji" query="true" hidden="true" queryMode="single" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" query="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="预计送达时间" field="yjsdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
|
||||
<t:dgCol title="客户单号" field="ywkhdh" query="true" queryMode="single" width="100"></t:dgCol>
|
||||
|
||||
<t:dgCol title="单号" field="fadh" query="true" queryMode="single" width="100"></t:dgCol>
|
||||
<t:dgCol title="下单人" field="username" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<t:dgDelOpt title="删除" url="tmsYwDingdanController.do?doDel&id={id}" urlclass="ace_button" exp="zhuangtai#eq#已下单" urlfont="fa-trash-o"/>
|
||||
<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" width="1000" height="400" funname="addbytab"></t:dgToolBar>
|
||||
<t:dgToolBar title="编辑" icon="icon-edit" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" funname="update"></t:dgToolBar>
|
||||
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="tmsYwDingdanController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" 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/tms/tmsYwDingdanList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
function addbytab(){
|
||||
addOneTab("下单", "tmsYwDingdanController.do?goAdd");
|
||||
}
|
||||
function onview(rowIndex,rowData) {
|
||||
var url = "tmsYwDingdanController.do?goUpdate";
|
||||
url += '&id='+rowData.id;
|
||||
createwindow("编辑",url,"100%","100%");
|
||||
|
||||
}
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsYwDingdanController.do?upload', "tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXls","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXlsByT","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,402 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>运输订单</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsYwDingdanController.do?doUpdate">
|
||||
<input id="id" name="id" type="hidden" value="${tmsYwDingdanPage.id }"/>
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsYwDingdanPage.createName }"/>
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsYwDingdanPage.createBy }"/>
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsYwDingdanPage.createDate }"/>
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsYwDingdanPage.updateName }"/>
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsYwDingdanPage.updateBy }"/>
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsYwDingdanPage.updateDate }"/>
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsYwDingdanPage.sysOrgCode }"/>
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsYwDingdanPage.sysCompanyCode }"/>
|
||||
<input id="xdrmz" name="xdrmz" type="hidden"type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.xdrmz}'/>
|
||||
<input id="username" name="username" type="hidden" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.username}'/>
|
||||
|
||||
<input id="zhuangtai" name="zhuangtai" type="hidden" type="text" style="width: 150px" class="inputxt" ignore="ignore" value="已回单"/>
|
||||
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">单号:</label>--%>
|
||||
<input id="fadh" name="fadh" type="hidden" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fadh}'/>
|
||||
|
||||
<fieldset class="step">
|
||||
|
||||
<table border="1pt" style="width: 1200px ">
|
||||
<tr><td colspan="4"><p style="font-size: large">回单信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">运费:</label>
|
||||
<input id="hwyf" name="hwyf" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwyf}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">卸货费:</label>
|
||||
<input id="hwxhf" name="hwxhf" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwxhf}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">货物总费用:</label>
|
||||
<input id="hwzfy" name="hwzfy" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwzfy}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">回单备注:</label>
|
||||
<input id="ywhdbz" name="ywhdbz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywhdbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">发货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人:</label>
|
||||
<input id="fahuoren" name="fahuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fahuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人电话:</label>
|
||||
<input id="fhrdh" name="fhrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人地址:</label>
|
||||
<input id="fhrdz" name="fhrdz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">收货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人:</label>
|
||||
<input id="shouhuoren" name="shouhuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shouhuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人电话:</label>
|
||||
<input id="shrsj" name="shrsj" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrsj}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人地址:</label>
|
||||
<input id="shrdh" name="shrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">货物信息 </p></td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">货物:</label>
|
||||
<input id="huowu" name="huowu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.huowu}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">件数:</label>
|
||||
<input id="hwshjs" name="hwshjs" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwshjs}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">重量:</label>
|
||||
<input id="zhongl" name="zhongl" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.zhongl}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">送货方式:</label>
|
||||
<t:dictSelect field="hwshfs" type="radio" typeGroupCode="tms_thfs" defaultVal="${tmsYwDingdanPage.hwshfs}" hasLabel="false" title="送货方式"></t:dictSelect>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">长米:</label>
|
||||
<input id="chang" name="chang" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.chang}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">宽米:</label>
|
||||
<input id="kuan" name="kuan" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.kuan}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">高米:</label>
|
||||
<input id="gao" name="gao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.gao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">立方米:</label>
|
||||
<input id="tiji" name="tiji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.tiji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<%--<tr><td colspan="4"><p style="font-size: large">其他信息 </p></td></tr>--%>
|
||||
<tr>
|
||||
<%--<td>--%>
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">下单附件:</label>--%>
|
||||
<%--<t:webUploader name="xiadanfj" bizType="photosucai" auto="true" extensions="doc,txt,jpg" buttonStyle="btn-green btn-L" ></t:webUploader>--%>
|
||||
|
||||
<%--<div class="form" id="filediv_xiadanfj"></div>--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">下单备注:</label>
|
||||
<input id="ywddbz" name="ywddbz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywddbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">代收款金额:</label>
|
||||
<input id="daishouk" name="daishouk" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.daishouk}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">客户单号:</label>
|
||||
<input id="ywkhdh" name="ywkhdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywkhdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否等通知:</label>
|
||||
<t:dictSelect field="dengtongzhi" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsYwDingdanPage.dengtongzhi}" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">车号:</label>
|
||||
<input id="chehao" name="chehao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.chehao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">司机:</label>
|
||||
<input id="siji" name="siji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.siji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsYwDingdan.js"></script>
|
||||
<script type="text/javascript">
|
||||
//加载 已存在的 文件
|
||||
$(function(){
|
||||
var table = $("#fileTable");
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "tmsYwDingdanController.do?getFiles&id=" + cgFormId,
|
||||
success: function(data){
|
||||
var arrayFileObj = jQuery.parseJSON(data).obj;
|
||||
|
||||
$.each(arrayFileObj,function(n,file){
|
||||
var fieldName = file.field.toLowerCase();
|
||||
var table = $("#"+fieldName+"_fileTable");
|
||||
var tr = $("<tr style=\"height:34px;\"></tr>");
|
||||
var td_title = $("<td>" + file.title + "</td>")
|
||||
var td_download = $("<td><a href=\"commonController.do?viewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity\" title=\"下载\">下载</a></td>")
|
||||
var td_view = $("<td><a href=\"javascript:void(0);\" onclick=\"openwindow('预览','commonController.do?openViewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)\">预览</a></td>");
|
||||
var td_del = $("<td><a href=\"javascript:void(0)\" class=\"jeecgDetail\" onclick=\"del('cgUploadController.do?delFile&id=" + file.fileKey + "',this)\">删除</a></td>");
|
||||
|
||||
tr.appendTo(table);
|
||||
td_title.appendTo(tr);
|
||||
td_download.appendTo(tr);
|
||||
td_view.appendTo(tr);
|
||||
td_del.appendTo(tr);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 删除图片数据资源
|
||||
*/
|
||||
function del(url,obj){
|
||||
var content = "请问是否要删除该资源";
|
||||
var navigatorName = "Microsoft Internet Explorer";
|
||||
if( navigator.appName == navigatorName ){
|
||||
$.dialog.confirm(content, function(){
|
||||
submit(url,obj);
|
||||
}, function(){
|
||||
});
|
||||
}else{
|
||||
layer.open({
|
||||
title:"提示",
|
||||
content:content,
|
||||
icon:7,
|
||||
yes:function(index){
|
||||
submit(url,obj);
|
||||
},
|
||||
btn:['确定','取消'],
|
||||
btn2:function(index){
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit(url,obj){
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
var msg = d.msg;
|
||||
tip(msg);
|
||||
obj.parentNode.parentNode.parentNode.deleteRow(obj.parentNode.parentNode);
|
||||
} else {
|
||||
tip(d.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
// neibuClickFlag = true;
|
||||
// $('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,182 @@
|
|||
<%@ 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="tmsYwDingdanList" checkbox="true" pagination="true" fitColumns="false" title="回单管理" actionUrl="tmsYwDingdanController.do?datagridhd" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="100"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
|
||||
<t:dgCol title="运费" field="hwyf" extendParams="editor:'text'" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="卸货费" field="hwxhf" extendParams="editor:'text'" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="货物总费用" field="hwzfy" extendParams="editor:'text'" queryMode="group" width="200"></t:dgCol>
|
||||
<t:dgCol title="回单备注" field="ywhdbz" extendParams="editor:'text'" queryMode="group" width="100"></t:dgCol>
|
||||
|
||||
<t:dgCol title="车号" field="chehao" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="件数" field="hwshjs" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
|
||||
<t:dgCol title="提货方式" field="hwshfs" query="true" dictionary="tms_thfs" queryMode="single" width="60"></t:dgCol>
|
||||
|
||||
<t:dgCol title="发货人" field="fahuoren" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="发货人电话" field="fhrdh" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
<t:dgCol title="发货人地址" field="fhrdz" queryMode="group" width="90"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
|
||||
<t:dgCol title="长米" field="chang" hidden="true" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="宽米" field="kuan" hidden="true" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="高米" field="gao" hidden="true" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="立方米" field="tiji" hidden="true" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="是否等通知" field="dengtongzhi" queryMode="group" dictionary="sf_yn" width="60"></t:dgCol>
|
||||
<%--<t:dgCol title="价格" field="jiage" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="下单附件" field="xiadanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="回单附件" field="huidanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="状态" field="zhuangtai" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<%--<t:dgCol title="下单人名字" field="xdrmz" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="司机" field="siji" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="客户单号" field="ywkhdh" query="true" queryMode="single" width="100"></t:dgCol>
|
||||
|
||||
<t:dgCol title="单号" field="fadh" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="下单人" field="username" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<%--<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" query="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="预计送达时间" field="yjsdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="操作" field="opt" width="60"></t:dgCol>
|
||||
<t:dgDelOpt title="取消回单" url="tmsYwDingdanController.do?doDelhd&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
|
||||
<%--<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="回单" icon="icon-edit" funname="updatehd" ></t:dgToolBar>
|
||||
<%--<t:dgToolBar title="回单" icon="icon-remove" url="tmsYwDingdanController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="批量回单" icon="icon-edit" funname="editRow"></t:dgToolBar>
|
||||
<t:dgToolBar title="批量保存回单" icon="icon-save" url="tmsYwDingdanController.do?saveRows" funname="saveData"></t:dgToolBar>
|
||||
<t:dgToolBar title="取消批量回单" icon="icon-undo" funname="reject"></t:dgToolBar>
|
||||
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" 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/tms/tmsYwDingdanList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
function updatehd() {
|
||||
var url = "tmsYwDingdanController.do?goUpdatehd";
|
||||
var rowsData = $('#tmsYwDingdanList').datagrid('getSelections');
|
||||
if (!rowsData || rowsData.length==0) {
|
||||
tip('请选择编辑项目');
|
||||
return;
|
||||
}
|
||||
if (rowsData.length>1) {
|
||||
tip('请选择一条记录再编辑');
|
||||
return;
|
||||
}
|
||||
url += '&id='+rowsData[0].id;
|
||||
|
||||
createwindow("回单",url,"100%","100%");
|
||||
}
|
||||
|
||||
//添加行
|
||||
function addRow(title,addurl,gname){
|
||||
$('#'+gname).datagrid('appendRow',{});
|
||||
var editIndex = $('#'+gname).datagrid('getRows').length-1;
|
||||
$('#'+gname).datagrid('selectRow', editIndex)
|
||||
.datagrid('beginEdit', editIndex);
|
||||
}
|
||||
//保存数据
|
||||
function saveData(title,addurl,gname){
|
||||
if(!endEdit(gname))
|
||||
return false;
|
||||
var rows=$('#'+gname).datagrid("getChanges","inserted");
|
||||
var uprows=$('#'+gname).datagrid("getChanges","updated");
|
||||
rows=rows.concat(uprows);
|
||||
if(rows.length<=0){
|
||||
tip("没有需要保存的数据!")
|
||||
return false;
|
||||
}
|
||||
var result={};
|
||||
for(var i=0;i<rows.length;i++){
|
||||
for(var d in rows[i]){
|
||||
result["demos["+i+"]."+d]=rows[i][d];
|
||||
}
|
||||
}
|
||||
$.ajax({
|
||||
url:"<%=basePath%>/"+addurl,
|
||||
type:"post",
|
||||
data:result,
|
||||
dataType:"json",
|
||||
success:function(data){
|
||||
tip(data.msg);
|
||||
if(data.success){
|
||||
reloadtable();
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
//结束编辑
|
||||
function endEdit(gname){
|
||||
var editIndex = $('#'+gname).datagrid('getRows').length-1;
|
||||
for(var i=0;i<=editIndex;i++){
|
||||
if($('#'+gname).datagrid('validateRow', i)){
|
||||
$('#'+gname).datagrid('endEdit', i);
|
||||
}else{
|
||||
|
||||
tip("请选择必填项(带有红色三角形状的字段)!");
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//编辑行
|
||||
function editRow(title,addurl,gname){
|
||||
var rows=$('#'+gname).datagrid("getChecked");
|
||||
if(rows.length==0){
|
||||
tip("请选择条目");
|
||||
return false;
|
||||
}
|
||||
for(var i=0;i<rows.length;i++){
|
||||
var index= $('#'+gname).datagrid('getRowIndex', rows[i]);
|
||||
$('#'+gname).datagrid('beginEdit', index);
|
||||
}
|
||||
}
|
||||
|
||||
//取消编辑
|
||||
function reject(title,addurl,gname){
|
||||
$('#'+gname).datagrid('clearChecked');
|
||||
$('#'+gname).datagrid('rejectChanges');
|
||||
|
||||
|
||||
}
|
||||
function reloadtable() {
|
||||
$('#tmsYwDingdanList').datagrid('reload', {});
|
||||
|
||||
}
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsYwDingdanController.do?upload', "tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXls","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXlsByT","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,402 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>运输订单</title>
|
||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||
<link rel="stylesheet" href="plug-in/uploadify/css/uploadify.css" type="text/css" />
|
||||
<script type="text/javascript" src="plug-in/uploadify/jquery.uploadify-3.1.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="div" action="tmsYwDingdanController.do?doUpdate">
|
||||
<input id="id" name="id" type="hidden" value="${tmsYwDingdanPage.id }"/>
|
||||
<input id="createName" name="createName" type="hidden" value="${tmsYwDingdanPage.createName }"/>
|
||||
<input id="createBy" name="createBy" type="hidden" value="${tmsYwDingdanPage.createBy }"/>
|
||||
<input id="createDate" name="createDate" type="hidden" value="${tmsYwDingdanPage.createDate }"/>
|
||||
<input id="updateName" name="updateName" type="hidden" value="${tmsYwDingdanPage.updateName }"/>
|
||||
<input id="updateBy" name="updateBy" type="hidden" value="${tmsYwDingdanPage.updateBy }"/>
|
||||
<input id="updateDate" name="updateDate" type="hidden" value="${tmsYwDingdanPage.updateDate }"/>
|
||||
<input id="sysOrgCode" name="sysOrgCode" type="hidden" value="${tmsYwDingdanPage.sysOrgCode }"/>
|
||||
<input id="sysCompanyCode" name="sysCompanyCode" type="hidden" value="${tmsYwDingdanPage.sysCompanyCode }"/>
|
||||
<input id="xdrmz" name="xdrmz" type="hidden"type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.xdrmz}'/>
|
||||
<input id="username" name="username" type="hidden" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.username}'/>
|
||||
|
||||
<input id="zhuangtai" name="zhuangtai" type="hidden" type="text" style="width: 150px" class="inputxt" ignore="ignore" value="已结算"/>
|
||||
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">单号:</label>--%>
|
||||
<input id="fadh" name="fadh" type="hidden" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fadh}'/>
|
||||
|
||||
<fieldset class="step">
|
||||
|
||||
<table border="1pt" style="width: 1200px ">
|
||||
<tr><td colspan="4"><p style="font-size: large">回单信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">运费:</label>
|
||||
<input id="hwyf" name="hwyf" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwyf}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">卸货费:</label>
|
||||
<input id="hwxhf" name="hwxhf" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwxhf}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">货物总费用:</label>
|
||||
<input id="hwzfy" name="hwzfy" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwzfy}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">回单备注:</label>
|
||||
<input id="ywhdbz" name="ywhdbz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywhdbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">发货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人:</label>
|
||||
<input id="fahuoren" name="fahuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fahuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人电话:</label>
|
||||
<input id="fhrdh" name="fhrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">发货人地址:</label>
|
||||
<input id="fhrdz" name="fhrdz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.fhrdz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><td colspan="4"><p style="font-size: large">收货人信息 </p></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人:</label>
|
||||
<input id="shouhuoren" name="shouhuoren" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shouhuoren}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人电话:</label>
|
||||
<input id="shrsj" name="shrsj" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrsj}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">收货人地址:</label>
|
||||
<input id="shrdh" name="shrdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.shrdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr><td colspan="4"><p style="font-size: large">货物信息 </p></td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">货物:</label>
|
||||
<input id="huowu" name="huowu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.huowu}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">件数:</label>
|
||||
<input id="hwshjs" name="hwshjs" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.hwshjs}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">重量:</label>
|
||||
<input id="zhongl" name="zhongl" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.zhongl}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">送货方式:</label>
|
||||
<t:dictSelect field="hwshfs" type="radio" typeGroupCode="tms_thfs" defaultVal="${tmsYwDingdanPage.hwshfs}" hasLabel="false" title="送货方式"></t:dictSelect>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">长米:</label>
|
||||
<input id="chang" name="chang" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.chang}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">宽米:</label>
|
||||
<input id="kuan" name="kuan" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.kuan}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">高米:</label>
|
||||
<input id="gao" name="gao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.gao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">立方米:</label>
|
||||
<input id="tiji" name="tiji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.tiji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<%--<tr><td colspan="4"><p style="font-size: large">其他信息 </p></td></tr>--%>
|
||||
<tr>
|
||||
<%--<td>--%>
|
||||
<%--<div class="form">--%>
|
||||
<%--<label class="Validform_label">下单附件:</label>--%>
|
||||
<%--<t:webUploader name="xiadanfj" bizType="photosucai" auto="true" extensions="doc,txt,jpg" buttonStyle="btn-green btn-L" ></t:webUploader>--%>
|
||||
|
||||
<%--<div class="form" id="filediv_xiadanfj"></div>--%>
|
||||
|
||||
<%--</div>--%>
|
||||
<%--</td>--%>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">下单备注:</label>
|
||||
<input id="ywddbz" name="ywddbz" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywddbz}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">代收款金额:</label>
|
||||
<input id="daishouk" name="daishouk" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.daishouk}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">客户单号:</label>
|
||||
<input id="ywkhdh" name="ywkhdh" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.ywkhdh}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">是否等通知:</label>
|
||||
<t:dictSelect field="dengtongzhi" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsYwDingdanPage.dengtongzhi}" hasLabel="false" title="是否等通知"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">车号:</label>
|
||||
<input id="chehao" name="chehao" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.chehao}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form">
|
||||
<label class="Validform_label">司机:</label>
|
||||
<input id="siji" name="siji" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsYwDingdanPage.siji}'/>
|
||||
<span class="Validform_checktip"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</fieldset>
|
||||
</t:formvalid>
|
||||
</body>
|
||||
<script src = "webpage/com/zzjee/tms/tmsYwDingdan.js"></script>
|
||||
<script type="text/javascript">
|
||||
//加载 已存在的 文件
|
||||
$(function(){
|
||||
var table = $("#fileTable");
|
||||
var cgFormId=$("input[name='id']").val();
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: "tmsYwDingdanController.do?getFiles&id=" + cgFormId,
|
||||
success: function(data){
|
||||
var arrayFileObj = jQuery.parseJSON(data).obj;
|
||||
|
||||
$.each(arrayFileObj,function(n,file){
|
||||
var fieldName = file.field.toLowerCase();
|
||||
var table = $("#"+fieldName+"_fileTable");
|
||||
var tr = $("<tr style=\"height:34px;\"></tr>");
|
||||
var td_title = $("<td>" + file.title + "</td>")
|
||||
var td_download = $("<td><a href=\"commonController.do?viewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity\" title=\"下载\">下载</a></td>")
|
||||
var td_view = $("<td><a href=\"javascript:void(0);\" onclick=\"openwindow('预览','commonController.do?openViewFile&fileid=" + file.fileKey + "&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)\">预览</a></td>");
|
||||
var td_del = $("<td><a href=\"javascript:void(0)\" class=\"jeecgDetail\" onclick=\"del('cgUploadController.do?delFile&id=" + file.fileKey + "',this)\">删除</a></td>");
|
||||
|
||||
tr.appendTo(table);
|
||||
td_title.appendTo(tr);
|
||||
td_download.appendTo(tr);
|
||||
td_view.appendTo(tr);
|
||||
td_del.appendTo(tr);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 删除图片数据资源
|
||||
*/
|
||||
function del(url,obj){
|
||||
var content = "请问是否要删除该资源";
|
||||
var navigatorName = "Microsoft Internet Explorer";
|
||||
if( navigator.appName == navigatorName ){
|
||||
$.dialog.confirm(content, function(){
|
||||
submit(url,obj);
|
||||
}, function(){
|
||||
});
|
||||
}else{
|
||||
layer.open({
|
||||
title:"提示",
|
||||
content:content,
|
||||
icon:7,
|
||||
yes:function(index){
|
||||
submit(url,obj);
|
||||
},
|
||||
btn:['确定','取消'],
|
||||
btn2:function(index){
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function submit(url,obj){
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
var msg = d.msg;
|
||||
tip(msg);
|
||||
obj.parentNode.parentNode.parentNode.deleteRow(obj.parentNode.parentNode);
|
||||
} else {
|
||||
tip(d.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function jeecgFormFileCallBack(data){
|
||||
if (data.success == true) {
|
||||
uploadFile(data);
|
||||
} else {
|
||||
if (data.responseText == '' || data.responseText == undefined) {
|
||||
$.messager.alert('错误', data.msg);
|
||||
$.Hidemsg();
|
||||
} else {
|
||||
try {
|
||||
var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
|
||||
$.messager.alert('错误', emsg);
|
||||
$.Hidemsg();
|
||||
} catch(ex) {
|
||||
$.messager.alert('错误', data.responseText + '');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!neibuClickFlag) {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
}
|
||||
}
|
||||
function upload() {
|
||||
$('#xiadanfj').uploadify('upload', '*');
|
||||
$('#huidanfj').uploadify('upload', '*');
|
||||
}
|
||||
|
||||
var neibuClickFlag = false;
|
||||
function neibuClick() {
|
||||
// neibuClickFlag = true;
|
||||
// $('#btn_sub').trigger('click');
|
||||
}
|
||||
function cancel() {
|
||||
$('#xiadanfj').uploadify('cancel', '*');
|
||||
$('#huidanfj').uploadify('cancel', '*');
|
||||
}
|
||||
function uploadFile(data){
|
||||
if(!$("input[name='id']").val()){
|
||||
if(data.obj!=null && data.obj!='undefined'){
|
||||
$("input[name='id']").val(data.obj.id);
|
||||
}
|
||||
}
|
||||
if($(".uploadify-queue-item").length>0){
|
||||
upload();
|
||||
}else{
|
||||
if (neibuClickFlag){
|
||||
alert(data.msg);
|
||||
neibuClickFlag = false;
|
||||
}else {
|
||||
var win = frameElement.api.opener;
|
||||
win.reloadTable();
|
||||
win.tip(data.msg);
|
||||
frameElement.api.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,88 @@
|
|||
<%@ 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="tmsYwDingdanList" checkbox="true" pagination="true" fitColumns="true" title="结算管理" actionUrl="tmsYwDingdanController.do?datagridjs" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="单号" field="fadh" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="下单人" field="username" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="发货人" field="fahuoren" hidden="true" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="发货人电话" field="fhrdh" hidden="true" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="发货人地址" field="fhrdz" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="车号" field="chehao" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="长米" field="chang" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="宽米" field="kuan" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="高米" field="gao" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="立方米" field="tiji" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="是否等通知" field="dengtongzhi" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
|
||||
<t:dgCol title="价格" field="jiage" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="下单附件" field="xiadanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>
|
||||
<t:dgCol title="回单附件" field="huidanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>
|
||||
<t:dgCol title="状态" field="zhuangtai" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="下单人名字" field="xdrmz" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="司机" field="siji" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="预计送达时间" field="yjsdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<t:dgDelOpt title="取消结算" url="tmsYwDingdanController.do?doDeljs&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
|
||||
<%--<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="结算" icon="icon-edit" funname="updatejs"></t:dgToolBar>
|
||||
<%--<t:dgToolBar title="结算" icon="icon-remove" url="tmsYwDingdanController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" 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/tms/tmsYwDingdanList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
function updatejs() {
|
||||
var url = "tmsYwDingdanController.do?goUpdatejs";
|
||||
var rowsData = $('#tmsYwDingdanList').datagrid('getSelections');
|
||||
if (!rowsData || rowsData.length==0) {
|
||||
tip('请选择编辑项目');
|
||||
return;
|
||||
}
|
||||
if (rowsData.length>1) {
|
||||
tip('请选择一条记录再编辑');
|
||||
return;
|
||||
}
|
||||
url += '&id='+rowsData[0].id;
|
||||
|
||||
createwindow("结算",url,"100%","100%");
|
||||
}
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsYwDingdanController.do?upload', "tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXls","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXlsByT","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,131 @@
|
|||
<%@ 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="tmsYwDingdanList" sortName="fadh" checkbox="true" pagination="true" fitColumns="false" fit="false" title="派车管理" actionUrl="tmsYwDingdanController.do?datagridpc" idField="id" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="dbsysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
|
||||
<t:dgCol title="发货人" field="fahuoren" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<%--<t:dgCol title="发货人电话" field="fhrdh" hidden="true" queryMode="single" width="90"></t:dgCol>--%>
|
||||
<t:dgCol title="发货人地址" field="fhrdz" queryMode="group" width="90"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
<t:dgCol title="车号" field="chehao" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="70"></t:dgCol>
|
||||
<t:dgCol title="件数" field="hwshjs" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
|
||||
<t:dgCol title="提货方式" field="hwshfs" query="true" dictionary="tms_thfs" queryMode="single" width="50"></t:dgCol>
|
||||
|
||||
<t:dgCol title="立方米" field="tiji" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="60"></t:dgCol>
|
||||
<t:dgCol title="长米" field="chang" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="宽米" field="kuan" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="高米" field="gao" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="80"></t:dgCol>
|
||||
<t:dgCol title="是否等通知" field="dengtongzhi" queryMode="group" dictionary="sf_yn" width="80"></t:dgCol>
|
||||
<%--<t:dgCol title="价格" field="jiage" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="下单附件" field="xiadanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="回单附件" field="huidanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="状态" field="zhuangtai" query="true" queryMode="single" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="下单人名字" field="xdrmz" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="司机" field="siji" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<%--<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" query="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="预计送达时间" field="yjsdsj" formatter="yyyy-MM-dd hh:mm:ss" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="客户单号" field="ywkhdh" query="true" queryMode="single" width="100"></t:dgCol>
|
||||
|
||||
<t:dgCol title="单号" field="fadh" query="true" queryMode="single" width="190"></t:dgCol>
|
||||
<t:dgCol title="下单人" field="username" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<%--<t:dgDelOpt title="取消派车" url="tmsYwDingdanController.do?doDelpc&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
|
||||
<%--<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tmsYwDingdanController.do?goUpdate" funname="update"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="批量派车" funname="pcALLSelect"></t:dgToolBar>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" 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 name="searchColums1" style="float: left; padding-left: 0px;padding-top: 5px;">
|
||||
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;" title="派车">派车 </span>
|
||||
司机:
|
||||
<t:dictSelect id="username" field="username" defaultVal="请选择" dictTable="tms_md_cheliang" dictField="username" dictText="chepaihao" title="司机"></t:dictSelect>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src = "webpage/com/zzjee/tms/tmsYwDingdanList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
function pcALLSelect() {
|
||||
var count=$("#username option").length;
|
||||
var siji;
|
||||
var chehao;
|
||||
for(var i=0;i<count;i++)
|
||||
{
|
||||
if($("#username ").get(0).options[i].selected){
|
||||
siji = $("#username ").get(0).options[i].value;
|
||||
chehao = $("#username ").get(0).options[i].text;
|
||||
}
|
||||
}
|
||||
if(siji==""||chehao==""){
|
||||
alert("司机和车号不能为空");
|
||||
}else {
|
||||
var rows = $('#tmsYwDingdanList').datagrid('getSelections');
|
||||
if (rows.length > 0) {
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var url = "tmsYwDingdanController.do?dopc";
|
||||
var formData = new Object();
|
||||
|
||||
formData['siji'] = siji;
|
||||
formData['chehao'] = chehao;
|
||||
formData['id'] = rows[i].id ;
|
||||
$.ajax({
|
||||
async: false,
|
||||
cache: false,
|
||||
type: 'POST',
|
||||
data: formData,
|
||||
url: url,// 请求的action路径
|
||||
error: function () {// 请求失败处理函数
|
||||
},
|
||||
success: function (data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
tip("派车成功");
|
||||
$('#tmsYwDingdanList').datagrid('reload', {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsYwDingdanController.do?upload', "tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXls","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXlsByT","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,108 @@
|
|||
<%@ 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="tmsYwDingdanList" sortName="chehao" checkbox="true" pagination="true" fitColumns="false" title="装车管理" actionUrl="tmsYwDingdanController.do?datagridzc" idField="id" fit="true" queryMode="group">
|
||||
<t:dgCol title="主键" field="id" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人名称" field="createName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建人登录名称" field="createBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新人登录名称" field="updateBy" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属部门" field="sysOrgCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="所属公司" field="sysCompanyCode" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="司机" field="siji" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
<t:dgCol title="车号" field="chehao" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
<t:dgCol title="发货人" field="fahuoren" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="发货人电话" field="fhrdh" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
<t:dgCol title="发货人地址" field="fhrdz" queryMode="group" width="90"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="90"></t:dgCol>
|
||||
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
<t:dgCol title="件数" field="hwshjs" query="true" queryMode="single" width="60"></t:dgCol>
|
||||
|
||||
<t:dgCol title="提货方式" field="hwshfs" query="true" dictionary="tms_thfs" queryMode="single" width="60"></t:dgCol>
|
||||
<t:dgCol title="长米" field="chang" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="宽米" field="kuan" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="高米" field="gao" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="立方米" field="tiji" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="70"></t:dgCol>
|
||||
<t:dgCol title="是否等通知" field="dengtongzhi" queryMode="group" dictionary="sf_yn" width="70"></t:dgCol>
|
||||
<%--<t:dgCol title="价格" field="jiage" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="下单附件" field="xiadanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="回单附件" field="huidanfj" hidden="true" queryMode="group" image="true" imageSize="50,50" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="状态" field="zhuangtai" query="true" queryMode="single" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="下单人名字" field="xdrmz" hidden="true" queryMode="group" width="120"></t:dgCol>
|
||||
<%--<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" query="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<%--<t:dgCol title="预计送达时间" field="yjsdsj" formatter="yyyy-MM-dd hh:mm:ss" hidden="true" queryMode="group" width="120"></t:dgCol>--%>
|
||||
<t:dgCol title="客户单号" field="ywkhdh" query="true" queryMode="single" width="100"></t:dgCol>
|
||||
|
||||
<t:dgCol title="单号" field="fadh" query="true" queryMode="single" width="190"></t:dgCol>
|
||||
<t:dgCol title="下单人" field="username" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
|
||||
<t:dgDelOpt title="取消装车" url="tmsYwDingdanController.do?doDelzc&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
|
||||
<%--<t:dgToolBar title="下单" icon="icon-add" url="tmsYwDingdanController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="tmsYwDingdanController.do?goUpdate" funname="update"></t:dgToolBar>--%>
|
||||
<t:dgToolBar title="装车" icon="icon-put" funname="zcALLSelect"></t:dgToolBar>
|
||||
<t:dgToolBar title="查看" icon="icon-search" url="tmsYwDingdanController.do?goUpdate" width="1200" height="550" 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/tms/tmsYwDingdanList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
function zcALLSelect() {
|
||||
var rows = $('#tmsYwDingdanList').datagrid('getSelections');
|
||||
if(rows.length > 0){
|
||||
for(var i=0; i<rows.length; i++){
|
||||
var url = "tmsYwDingdanController.do?dozc";
|
||||
var formData = new Object();
|
||||
|
||||
formData['id'] = rows[i].id ;
|
||||
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
data:formData,
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
tip("装车成功");
|
||||
$('#tmsYwDingdanList').datagrid('reload',{});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'tmsYwDingdanController.do?upload', "tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXls","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("tmsYwDingdanController.do?exportXlsByT","tmsYwDingdanList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -0,0 +1,62 @@
|
|||
<%@ 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="vYsddList" isShowSearch="true" checkbox="false" pagination="true" fitColumns="true" title="运输订单报表(默认显示当天)" actionUrl="vYsddController.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="createDate" formatter="yyyy-MM-dd" query="true" queryMode="group" width="190"></t:dgCol>
|
||||
<t:dgCol title="送达时间" field="sdsj" formatter="yyyy-MM-dd hh:mm:ss" query="true" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="发货人" field="fahuoren" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="货物" field="huowu" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="件数" field="hwshjs" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="重量" field="zhongl" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="立方米" field="tiji" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人地址" field="shrdh" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人" field="shouhuoren" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="送货方式" field="hwshfs" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="收货人电话" field="shrsj" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="代收款金额" field="daishouk" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="运费" field="hwyf" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="货物总费用" field="hwzfy" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="卸货费" field="hwxhf" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="车号" field="chehao" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="状态" field="zhuangtai" queryMode="group" width="120"></t:dgCol>
|
||||
<t:dgCol title="回单备注" field="ywhdbz" query="true" queryMode="single" width="120"></t:dgCol>
|
||||
<t:dgCol title="上午或下午" field="by1" query="true" queryMode="single" width="80"></t:dgCol>
|
||||
|
||||
<%--<t:dgCol title="操作" field="opt" width="100"></t:dgCol>--%>
|
||||
<%--<t:dgDelOpt title="删除" url="vYsddController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>--%>
|
||||
<%--<t:dgToolBar title="录入" icon="icon-add" url="vYsddController.do?goAdd" funname="add"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="编辑" icon="icon-edit" url="vYsddController.do?goUpdate" funname="update"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="批量删除" icon="icon-remove" url="vYsddController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>--%>
|
||||
<%--<t:dgToolBar title="查看" icon="icon-search" url="vYsddController.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/tmsv/vYsddList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
openuploadwin('Excel导入', 'vYsddController.do?upload', "vYsddList");
|
||||
}
|
||||
|
||||
//导出
|
||||
function ExportXls() {
|
||||
JeecgExcelExport("vYsddController.do?exportXls","vYsddList");
|
||||
}
|
||||
|
||||
//模板下载
|
||||
function ExportXlsByT() {
|
||||
JeecgExcelExport("vYsddController.do?exportXlsByT","vYsddList");
|
||||
}
|
||||
|
||||
</script>
|
|
@ -26,7 +26,7 @@ function make2DCode() {
|
|||
width : codesize,
|
||||
height : codesize
|
||||
});
|
||||
qrcode.makeCode(document.getElementById("showlisturl").value);
|
||||
qrcode.makeCode(document.getElementById("content").value);
|
||||
};
|
||||
// window.onload=function(){
|
||||
// make2DCode();
|
||||
|
@ -167,14 +167,14 @@ function downloadqrcode() {
|
|||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">${comname}</span></td>
|
||||
<td colspan=4 class=xl68 width=168 style='width:126pt'>日期:${kprq}</td>
|
||||
<%--<td rowspan="2" class=xl69>--%>
|
||||
<%--<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${wmOmNoticeHPage.omNoticeId}" style="width:80px;height:80px;vertical-align:right">--%>
|
||||
<%--</td>--%>
|
||||
<td rowspan="2" class=xl69>
|
||||
<td rowspan="2" class=xl69>
|
||||
<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${wmOmNoticeHPage.omNoticeId}" style="width:80px;height:80px;vertical-align:right">
|
||||
</td>
|
||||
<%--<td rowspan="2" class=xl69>--%>
|
||||
|
||||
<div id="qrcode" style="width:80px; height:80px;margin-top: 10px;margin-left: -10px"></div>
|
||||
<%--<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${showlisturl}" style="width:80px;height:80px;vertical-align:right">--%>
|
||||
</td>
|
||||
<%--<div id="qrcode" style="width:80px; height:80px;margin-top: 10px;margin-left: -10px"></div>--%>
|
||||
<%--<%–<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${showlisturl}" style="width:80px;height:80px;vertical-align:right">–%>--%>
|
||||
<%--</td>--%>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">拣货单</span></td>
|
||||
|
@ -217,7 +217,7 @@ function downloadqrcode() {
|
|||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>规格</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>拣货</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>品质</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>托盘/保质期</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>流通码</td>
|
||||
|
||||
<td ></td>
|
||||
|
|
|
@ -0,0 +1,261 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>拣货任务打印</title>
|
||||
<t:base type="jquery,easyui,tools"></t:base>
|
||||
<script type="text/javascript" charset="utf-8" src="webpage/com/zzjee/wmjs/jquery.jqprint.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="webpage/com/zzjee/wmjs/qrcode.min.js"></script>
|
||||
|
||||
<script language="javascript">
|
||||
function printall(){
|
||||
|
||||
$(".printdiv").jqprint();
|
||||
|
||||
}
|
||||
function printview(){
|
||||
document.all.WebBrowser1.ExecWB(7,1);
|
||||
}
|
||||
function make2DCode() {
|
||||
$("#qrcode").html("");//清空二维码
|
||||
var qrcode;
|
||||
var codesize = 80;
|
||||
console.log(codesize);
|
||||
qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||
width : codesize,
|
||||
height : codesize
|
||||
});
|
||||
qrcode.makeCode(document.getElementById("showlisturl").value);
|
||||
};
|
||||
// window.onload=function(){
|
||||
// make2DCode();
|
||||
// smalltoBIG('jinexx','jinedx');
|
||||
// };
|
||||
|
||||
document.onreadystatechange = function () {
|
||||
if (document.readyState == "complete") {
|
||||
console.log("content");
|
||||
make2DCode();
|
||||
}
|
||||
}
|
||||
function downloadqrcode() {
|
||||
// 获取base64的图片节点
|
||||
var img = document.getElementById('qrcode').getElementsByTagName('img')[0];
|
||||
// 构建画布
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.width = img.width;
|
||||
canvas.height = img.height;
|
||||
canvas.getContext('2d').drawImage(img, 0, 0);
|
||||
// 构造url
|
||||
url = canvas.toDataURL('image/png');
|
||||
// 构造a标签并模拟点击
|
||||
var downloadLink = document.getElementById('downloadLink');
|
||||
downloadLink.setAttribute('href', url);
|
||||
downloadLink.setAttribute('download', '二维码.png');
|
||||
downloadLink.click();
|
||||
};
|
||||
|
||||
</script>
|
||||
<style>
|
||||
tr
|
||||
{mso-height-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
col
|
||||
{mso-width-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
br
|
||||
{mso-data-placement:same-cell;}
|
||||
ruby
|
||||
{ruby-align:left;}
|
||||
.style0
|
||||
{mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family: 黑体;
|
||||
mso-font-charset:0;
|
||||
border:none;
|
||||
mso-protection:locked visible;
|
||||
mso-style-name:常规;
|
||||
mso-style-id:0;}
|
||||
td
|
||||
{mso-style-parent:style0;
|
||||
padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:黑体;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
border:none;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
mso-protection:locked visible;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;}
|
||||
.xl65
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
text-align:center;
|
||||
border:1.0pt solid black;}
|
||||
.xl66
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;}
|
||||
.xl67
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:18pt;
|
||||
text-align:center;}
|
||||
.xl68
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
white-space:normal;}
|
||||
.xl69
|
||||
{mso-style-parent:style0;
|
||||
text-align:center;}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body style="overflow-y:auto" scroll="no">
|
||||
<a class="easyui-linkbutton" style="margin-top:3px" icon="icon-print" href="javascript:printall()">打印</a>
|
||||
|
||||
<div class="printdiv"><t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" >
|
||||
<input id="content" type="hidden" value="${wmOmNoticeHPage.omNoticeId}">
|
||||
<input id="showlisturl" type="hidden" value="${showlisturl}">
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=780 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:438pt;margin-left: 30px;margin-top: -30px'>
|
||||
<col width=102 style='mso-width-source:userset;mso-width-alt:3612;width:76pt'>
|
||||
|
||||
<%--<col width=84 style='mso-width-source:userset;mso-width-alt:2986;width:63pt'>--%>
|
||||
<col width=253 style='mso-width-source:userset;mso-width-alt:4010;width:200pt'>
|
||||
<col width=45 style='mso-width-source:userset;mso-width-alt:1592;width:34pt'>
|
||||
<col width=94 style='mso-width-source:userset;mso-width-alt:2986; width:80pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:70pt'>
|
||||
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:70pt'>
|
||||
|
||||
<col width=67 style='mso-width-source:userset;mso-width-alt:2389;width:50pt'>
|
||||
<tr height=18 style='height:13.2pt'>
|
||||
<td colspan=10 height=18 width=585 style='height:13.2pt;width:438pt'></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">${comname}</span></td>
|
||||
<td colspan=4 class=xl68 width=168 style='width:126pt'>日期:${kprq}</td>
|
||||
<%--<td rowspan="2" class=xl69>--%>
|
||||
<%--<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${wmOmNoticeHPage.omNoticeId}" style="width:80px;height:80px;vertical-align:right">--%>
|
||||
<%--</td>--%>
|
||||
<td rowspan="2" class=xl69>
|
||||
|
||||
<div id="qrcode" style="width:80px; height:80px;margin-top: 10px;margin-left: -10px"></div>
|
||||
<%--<img src="rest/wmBaseController/showOrDownqrcodeByurl?qrvalue=${showlisturl}" style="width:80px;height:80px;vertical-align:right">--%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl67 style='height:30.0pt'><span style="font-size: 18pt">拣货单</span></td>
|
||||
<td colspan=4 class=xl68 width=168 style='width:126pt'>单号:${noticeid}</td>
|
||||
<td colspan=1 style='mso-ignore:colspan'></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>货主:${cusname}</td>
|
||||
<td colspan=4 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>客户:${ocusname}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 class=xl68 width=337 style='width:252pt'>备注:${wmOmNoticeHPage.omBeizhu}</td>
|
||||
<td colspan=4 >WMS单号:${wmOmNoticeHPage.omNoticeId}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 class=xl68 width=337 style='width:252pt'>地址:${wmOmNoticeHPage.delvAddr}</td>
|
||||
<td colspan=4 >拣货提醒:${jianhuoremark}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=5 class=xl68 width=337 style='width:252pt'>总体积:${tijisum}</td>
|
||||
<td colspan=4 >总重量:${zhlsum}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr height=33 style='mso-height-source:userset;height:25.05pt'>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>储位</td>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>--%>
|
||||
<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>商品</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>单位</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>生产日期</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>数量</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>重量</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>体积</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>规格</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>拣货</td>
|
||||
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>托盘/保质期</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>流通码</td>
|
||||
|
||||
<td ></td>
|
||||
</tr>
|
||||
|
||||
<c:if test="${fn:length(wmOmQmIList) > 0 }">
|
||||
<c:forEach items="${wmOmQmIList}" var="poVal" varStatus="stuts">
|
||||
|
||||
<tr height=50 style='mso-height-source:userset;height:65px'>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.binId } </td>
|
||||
<%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsId }</td>--%>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center;word-break:break-all;'><span style='word-break:break-all;width: auto;font-size: 14pt'>${poVal.goodsName }</span></td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.baseUnit }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.proData }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.baseGoodscount }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinZhl }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinTj }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.shpGuiGe }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.pickNotice }</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinId }/${poVal.baoZhiq }</td>
|
||||
<td class=xl65 align="center" valign="middle" style='border:1.0pt solid black'><img src="systemController/showOrDownByurl.do?dbPath=${poVal.id }.png" alt="${poVal.barCode }" style="width:60px;height:60px;vertical-align:middle;"> </td>
|
||||
<td ></td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
</c:if>
|
||||
<tr height=20 style='height:25.0pt'>
|
||||
<td height=20 class=xl66 colspan=8 style='height:15.0pt;mso-ignore:colspan;text-align: justify'>主管:<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>制单: ${wmOmNoticeHPage.createBy}<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>仓管:<span
|
||||
style='mso-spacerun:yes'>
|
||||
</span>叉车:<span
|
||||
style='mso-spacerun:yes'></span></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</t:formvalid></div>
|
||||
</body>
|
|
@ -0,0 +1,173 @@
|
|||
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<%@include file="/context/mytags.jsp"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>追溯商品</title>
|
||||
<t:base type="jquery,easyui,tools"></t:base>
|
||||
<script type="text/javascript" charset="utf-8" src="webpage/com/zzjee/wmjs/jquery.jqprint.js"></script>
|
||||
<script language="javascript">
|
||||
function printall(){
|
||||
|
||||
$(".printdiv").jqprint();
|
||||
|
||||
}
|
||||
function printview(){
|
||||
document.all.WebBrowser1.ExecWB(7,1);
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<style>
|
||||
tr
|
||||
{mso-height-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
col
|
||||
{mso-width-source:auto;
|
||||
mso-ruby-visibility:none;}
|
||||
br
|
||||
{mso-data-placement:same-cell;}
|
||||
ruby
|
||||
{ruby-align:left;}
|
||||
.style0
|
||||
{mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family: 黑体;
|
||||
mso-font-charset:0;
|
||||
border:none;
|
||||
mso-protection:locked visible;
|
||||
mso-style-name:常规;
|
||||
mso-style-id:0;}
|
||||
td
|
||||
{mso-style-parent:style0;
|
||||
padding-top:1px;
|
||||
padding-right:1px;
|
||||
padding-left:1px;
|
||||
mso-ignore:padding;
|
||||
color:windowtext;
|
||||
font-size:14pt;
|
||||
font-weight:400;
|
||||
font-style:normal;
|
||||
text-decoration:none;
|
||||
font-family:黑体;
|
||||
mso-font-charset:0;
|
||||
mso-number-format:General;
|
||||
text-align:general;
|
||||
vertical-align:bottom;
|
||||
border:none;
|
||||
mso-background-source:auto;
|
||||
mso-pattern:auto;
|
||||
mso-protection:locked visible;
|
||||
white-space:nowrap;
|
||||
mso-rotate:0;}
|
||||
.xl65
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
text-align:center;
|
||||
border:1.0pt solid black;}
|
||||
.xl66
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;}
|
||||
.xl67
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:18pt;
|
||||
text-align:center;}
|
||||
.xl68
|
||||
{mso-style-parent:style0;
|
||||
color:black;
|
||||
font-size:16pt;
|
||||
white-space:normal;}
|
||||
.xl69
|
||||
{mso-style-parent:style0;
|
||||
text-align:center;}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body style="overflow-y:auto" scroll="no">
|
||||
|
||||
<div class="printdiv"><t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" >
|
||||
<input id="content" type="hidden" value="${wmOmNoticeHPage.omNoticeId}">
|
||||
<table border=0 cellpadding=0 cellspacing=0 width=2340 style='border-collapse:
|
||||
collapse;table-layout:fixed;width:438pt;margin-left: 30px;margin-top: -30px'>
|
||||
<col width=102 style='mso-width-source:userset;mso-width-alt:3612;width:76pt'>
|
||||
<col width=45 style='mso-width-source:userset;mso-width-alt:1560;width:34pt'>
|
||||
<col width=102 style='mso-width-source:userset;mso-width-alt:3612;width:76pt'>
|
||||
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<th colspan=3 height=40 class=xl67 style='height:30.0pt' ><span style="font-size: 18pt">${comname}</span></th>
|
||||
</tr>
|
||||
<%--<td colspan=3 class=xl68 width=168 style='width:126pt'>日期:${kprq}</td>--%>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=3 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>货主:${cusname}</td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=3 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>出库单号:${wmOmQmIEntity.omNoticeId}</td>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<td colspan=3 height=40 class=xl68 width=242 style='height:30.0pt;width:182pt'>采购单号:${wmimnoticeh.noticeId}</td>
|
||||
</tr> .
|
||||
</td>
|
||||
|
||||
<tr height=20 style='mso-height-source:userset;height:20.05pt'>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>储位</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>--%>
|
||||
<td height=20 class=xl65 style='height:20.05pt;border:1.0pt solid black;text-align: center'>商品</td>
|
||||
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>单位</td>--%>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>生产日期</td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'>数量</td>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>重量</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>体积</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>规格</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>拣货</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>品质</td>--%>
|
||||
<%--<td colspan=2 class=xl65 style='border:1.0pt solid black;text-align: center'>追溯码</td>--%>
|
||||
</tr>
|
||||
|
||||
<tr height=20 style='mso-height-source:userset;height:20px'>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.binId } </td>--%>
|
||||
<%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsId }</td>--%>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center;word-break:break-all;'><span style='word-break:break-all;width: auto;font-size: 10pt'>${wmOmQmIEntity.goodsName }</span></td>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.baseUnit }</td>--%>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'><span style='word-break:break-all;width: auto;font-size: 10pt'>${wmOmQmIEntity.proData }</span></td>
|
||||
<td class=xl65 style='border:1.0pt solid black;text-align: center'><span style='word-break:break-all;width: auto;font-size: 10pt'>${wmOmQmIEntity.baseGoodscount }</span></td>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinZhl }</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinTj }</td>--%>
|
||||
<%--<tdcolspan=2 class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.shpGuiGe }</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.pickNotice }</td>--%>
|
||||
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.tinId }/${poVal.baoZhiq }</td>--%>
|
||||
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<th colspan=3 height=400 class=xl67 style='height:30.0pt' ><span style="font-size: 18pt">营业执照</th>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<th colspan=3 height=400 class=xl67 style='height:30.0pt' ><span style="font-size: 18pt"><img src="systemController/showOrDownByurl.do?dbPath=${MdCusEntity.zuZhiJiGou }" ></span></th>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<th colspan=3 height=400 class=xl67 style='height:30.0pt' ><span style="font-size: 18pt">检测报告</th>
|
||||
</tr>
|
||||
<tr height=40 style='mso-height-source:userset;height:30.0pt'>
|
||||
<th colspan=3 height=400 class=xl67 style='height:30.0pt' ><span style="font-size: 18pt"><img src="systemController/showOrDownByurl.do?dbPath=${wmimnoticeh.fuJian }" ></span></th>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
</t:formvalid></div>
|
||||
</body>
|
|
@ -284,7 +284,10 @@
|
|||
<b>承运人车号:</b>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<input id="reCarno" name="reCarno" type="text" class="form-control"
|
||||
|
||||
<t:autocomplete entityName="TmsMdCheliangEntity" searchField="chepaihao" name="reCarno"></t:autocomplete>
|
||||
|
||||
<input id="reCarno" name="reCarno" type="text" class="form-control"
|
||||
/>
|
||||
<span class="Validform_checktip" style="float:left;height:0px;"></span>
|
||||
<label class="Validform_label" style="display: none">承运人车号</label>
|
||||
|
|
|
@ -38,7 +38,9 @@
|
|||
<t:dgDelOpt title="删除" url="wmOmNoticeHController.do?doDel&id={id}" urlclass="ace_button" exp="omSta#ne#已完成" urlfont="fa-trash-o"/>
|
||||
<%--<t:dgFunOpt title="通知单" funname="print(id)" urlclass="ace_button" urlfont=" fa-print" exp="omSta#ne#已删除"/>--%>
|
||||
<t:dgFunOpt title="拣货单" funname="doprint(id)" urlclass="ace_button" exp="omSta#ne#已删除" />
|
||||
<t:dgFunOpt title="回写" funname="dopost(id)" urlclass="ace_button" exp="omSta#eq#已完成" />
|
||||
<t:dgFunOpt title="追溯单" funname="doprintzhuisu(id)" urlclass="ace_button" exp="omSta#ne#已删除" />
|
||||
|
||||
<%--<t:dgFunOpt title="回写" funname="dopost(id)" urlclass="ace_button" exp="omSta#eq#已完成" />--%>
|
||||
|
||||
<t:dgFunOpt title="出库单" funname="printckd(id)" urlclass="ace_button" urlfont=" fa-print" exp="omSta#ne#已删除"/>
|
||||
<%--<t:dgFunOpt title="装箱单" funname="printckd(id)" urlclass="ace_button" urlfont=" fa-print" exp="omSta#ne#已删除"/>--%>
|
||||
|
@ -118,6 +120,12 @@
|
|||
var url = "wmOmNoticeHController.do?doPrintpage&id="+id;
|
||||
createdetailwindow(" 拣货单", url, 1200, 800);
|
||||
|
||||
// window.open(url);
|
||||
}
|
||||
function doprintzhuisu(id){
|
||||
var url = "wmOmNoticeHController.do?doPrintzhuisu&id="+id;
|
||||
createdetailwindow(" 追溯单", url, 1200, 800);
|
||||
|
||||
// window.open(url);
|
||||
}
|
||||
$(document).ready(function(){
|
||||
|
|
|
@ -137,6 +137,16 @@
|
|||
<span class="Validform_checktip"><t:mutiLang langKey="role.muti.select"/></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right"><label class="Validform_label"> 用户类型: </label></td>
|
||||
<td class="value">
|
||||
|
||||
<t:dictSelect id="userType" field="userType" typeGroupCode="user_type" hasLabel="false" defaultVal="${user.userType==null?'4':(user.userType)}" type="radio"></t:dictSelect>
|
||||
<span class="Validform_checktip"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="right" nowrap><label class="Validform_label"> <t:mutiLang langKey="common.phone"/>: </label></td>
|
||||
<td class="value">
|
||||
|
|
Loading…
Reference in New Issue