| | |
| | | @RequestParam(value = "deptId", required = false) String deptId) { |
| | | ModelAndView view = new ModelAndView(); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(null); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | |
| | | deptId = ContextUtil.subDeptId(user); |
| | | } |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(deptId); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | |
| | | view.addObject("bizType", BizType.GAS.getCode()); |
| | | //获取当前用户所在的分库名称 |
| | | DefaultDept dept = commonManager.getSubDept(user, deptId); |
| | |
| | | private PestManager pestManager; |
| | | @Autowired |
| | | private ConfigGasImg gasImg; |
| | | /** |
| | | * 临时页面 |
| | | * |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | @RequestMapping("/pest-temp") |
| | | public ModelAndView newGas( |
| | | @RequestParam(value = "depotId", required = false) String depotId) { |
| | | ModelAndView view = new ModelAndView(); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(null); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | view.addObject("bizType", BizType.PEST.getCode()); |
| | | |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | view.addObject("deptId", deptId); |
| | | |
| | | view.setViewName("admin/pest/temp"); |
| | | return view; |
| | | } |
| | | |
| | | /** |
| | | * 实际使用页面 |
| | |
| | | @RequestParam(value = "deptId", required = false) String deptId) { |
| | | ModelAndView view = new ModelAndView(); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(null); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | |
| | | |
| | | if (StringUtils.isEmpty(deptId)) { |
| | | deptId = ContextUtil.subDeptId(user); |
| | | } |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<Depot> listDepot = commonManager.listDepot(deptId); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | |
| | | view.addObject("bizType", BizType.PEST.getCode()); |
| | | |
| | | //获取当前用户所在的分库名称 |
| | |
| | | import javax.persistence.*; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 设备信息 |
| | |
| | | |
| | | import javax.persistence.*; |
| | | |
| | | import com.ld.igds.file.dto.FileData; |
| | | import lombok.Data; |
| | | |
| | | import com.bstek.dorado.annotation.PropertyDef; |
| | |
| | | ##----\u6C14\u4F53\u901A\u9053\u914D\u7F6E----gas.mapImg.deptId.img--## |
| | | |
| | | ## 5000-\u6F6E\u9633 |
| | | gas.mapImg.5000_001.img=5000_001.png |
| | | |
| | | ## 5016-\u5927\u6E7E\u533A\u6C14\u4F53\uFF0C\u53EA\u670910\u4E2A\u5E73\u65B9\u4ED3\u6709\u6C14\u4F53 |
| | | gas.mapImg.3P01.img=5016_001.png |
| | | gas.mapImg.3P02.img=5016_001.png |
| | |
| | | gas.mapImg.5013_001.img=5013_001.png |
| | | |
| | | ## 5318-\u6F6E\u9633 |
| | | gas.mapImg.5318_001.img=5318_001.png |
| | | |
| | | |
| | | ## 5000-\u6F6E\u9633 |
| | | gas.mapImg.5000_001.img=5000_001.png |
| | | gas.mapImg.5318_001.img=5318_001.png |
| | |
| | | function cutPoint(depotId) { |
| | | //首先除去已有效果 |
| | | $(".qt-pic-icon-active").removeClass("qt-pic-icon-active"); |
| | | |
| | | |
| | | $("#list-point-right").css("display","none"); |
| | | $("#list-point-left").css("display","block"); |
| | | |
| | | //根据义乌这边直接判断 |
| | | if("0135,0137,0139,0141,0143,0145,0147,0149,0151,0153".indexOf(depotId) >=0 ){ |
| | | $("#list-point-right").css("display","block"); |
| | | $("#list-point-left").css("display","none"); |
| | | }else{ |
| | | $("#list-point-right").css("display","none"); |
| | | $("#list-point-left").css("display","block"); |
| | | } |
| | | // if("0135,0137,0139,0141,0143,0145,0147,0149,0151,0153".indexOf(depotId) >=0 ){ |
| | | // $("#list-point-right").css("display","block"); |
| | | // $("#list-point-left").css("display","none"); |
| | | // }else{ |
| | | // $("#list-point-right").css("display","none"); |
| | | // $("#list-point-left").css("display","block"); |
| | | // } |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | //切换仓库图片 |
| | | function cutImg(depotId) { |
| | | var gasImg = gasImgMap[depotId]; |
| | | //console.log(gasImg); |
| | | //默认图片 |
| | | var imgPath = "../../static/img/gas/default_img.png"; |
| | | //取仓库配置图片 |
| | | var gasImg = gasImgMap[depotId]; |
| | | if(gasImg){ |
| | | imgPath = "../../static/img/gas/"+companyId+"/" + gasImg.img; |
| | | }else { |
| | | gasImg = gasImgMap[deptId]; |
| | | if(gasImg){ |
| | | imgPath = "../../static/img/gas/"+companyId+"/" + gasImg.img; |
| | | } |
| | | } |
| | | $("#depot_img").attr("src", imgPath); |
| | | } |
| | |
| | | ##----\u901A\u98CE\u53C2\u6570\u914D\u7F6E----verb.mapImg.deptId.a--## |
| | | ## 5000_001 |
| | | verb.mapImg.5000_001.a=default_pfc2_a.png |
| | | verb.mapImg.5000_001.b=default_pfc2_b.png |
| | | |
| | | verb.mapImg.5000_0137.a=default_qyc_a.png |
| | | verb.mapImg.5000_0137.b=default_qyc_b.png |
| | | verb.mapImg.5000_0138.a=default_qyc_a.png |
| | | verb.mapImg.5000_0138.b=default_qyc_b.png |
| | | |
| | | ## 5013_001 \u5206\u5E93\u7F16\u7801 |
| | | verb.mapImg.5013_001.a=default_pfc_a.png |
| | | verb.mapImg.5013_001.b=default_pfc_b.png |
| | |
| | | ## 5307_001 |
| | | verb.mapImg.5307_001.a=default_qyc_a.png |
| | | verb.mapImg.5307_001.b=default_qyc_b.png |
| | | ## 5000_001 |
| | | |
| | | verb.mapImg.5000_001.a=default_pfc2_a.png |
| | | verb.mapImg.5000_001.b=default_pfc2_b.png |
| | | |
| | | verb.mapImg.5000_0137.a=default_qyc_a.png |
| | | verb.mapImg.5000_0137.b=default_qyc_b.png |
| | | verb.mapImg.5000_0138.a=default_qyc_a.png |
| | | verb.mapImg.5000_0138.b=default_qyc_b.png |
| | | |
| | | |
| | | ## 5322_001 广东徐闻 |