| | |
| | | this.boxType = boxType; |
| | | } |
| | | |
| | | // BasBoxType basBoxType = new BasBoxType( |
| | | public String getArmType$() { |
| | | if (Cools.isEmpty(armType)) return "请选择结果"; |
| | | switch (armType) { |
| | | case 1: |
| | | return "允许"; |
| | | case 999: |
| | | return "不允许"; |
| | | default: |
| | | return "请选择结果"; |
| | | } |
| | | } |
| | | |
| | | // BasBoxType basBoxType = new BasBoxType( |
| | | // null, // 任务号[非空] |
| | | // null // 堆垛机 |
| | | // ); |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | public int getBrandArmType$(){ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | return basBoxType.getArmType(); |
| | | try{ |
| | | BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); |
| | | List<BasBoxType> basBoxTypes = basBoxTypeService.selectList(new EntityWrapper<BasBoxType>().eq("box_type", this.brand).orderBy("id", true)); |
| | | for (BasBoxType basBoxType:basBoxTypes){ |
| | | if (basBoxType.getArmType()!=1){ |
| | | return 999; |
| | | } |
| | | return basBoxType.getArmType(); |
| | | } |
| | | return 999; |
| | | } catch (Exception e){ |
| | | return 999; |
| | | } |
| | | return 999; |
| | | } |
| | | |
| | | |
| | |
| | | {field: 'id', align: 'center',title: 'ID' ,hide : true}, |
| | | {field: 'boxSpecs', align: 'center',title: '箱型',hide : false} |
| | | ,{field: 'boxType', align: 'center',title: '箱型编号',hide : false} |
| | | ,{field: 'armType$', align: 'center',title: '是否允许机械臂执行',hide : false} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | |
| | | <input class="layui-input" name="boxType" placeholder="请输入箱型编号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">箱型编号(桁架机械臂用): </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="armType" placeholder="请输入箱型编号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">是否允许机械臂执行: </label> |
| | | <div class="layui-input-block"> |
| | | <select name="armType"> |
| | | <option value="0">请选择结果</option> |
| | | <option value="1">允许</option> |
| | | <option value="999">不允许</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |