| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- package com.mes.ui;
- import java.util.ArrayList;
- import java.util.List;
- import java.util.Map;
- public class OprnoUtil {
- public static String[] xtoprnos = new String[]{
- "OP010",
- "OP030",
- "OP050",
- "OP060",
- "OP070",
- "OP080",
- "OP090",
- "OP100",
- "OP110",
- "OP120",
- "OP130",
- "OP140",
- "OP150",
- "OP160",
- "OP190",
- "OP210",
- "OP220"
- };
- public static String[] xtoprnodes = new String[]{
- "镭雕",
- "凸焊",
- "打印",
- "左右吊耳组件点焊",
- "电池壳分总成1点焊",
- "电池壳分总成1点焊补焊",
- "电池壳分总成2点焊",
- "电池壳分总成2点焊补焊",
- "电池壳分总成3点焊",
- "电池壳分总成4点焊",
- "电池壳分总成5点焊补焊",
- "电池壳分总成6弧焊",
- "电池壳分总成7弧焊",
- "电池壳分总成8弧焊",
- "气密检测",
- "拉铆",
- "总成气密检测"
- };
- public static String[] lboprnos = new String[]{
- "OP010","OP040", "OP060", "OP070", "OP080",
- "OP110", "OP130", "OP150", "OP180", "OP190",
- };
- public static String[] lboprnodes = new String[]{
- "镭雕二维码","左右边框总成", "前后边框总成", "总成框架拼焊-A", "总成框架弧焊-B",
- "气密检测", "拉铆框架正面", "液冷板装配拉铆", "总成气密检测", "在线检测"
- };
- public static String getGwDes(String lineSn,String oprno){
- String des = "";
- oprno = formatOprno(oprno);
- if(lineSn.equals("HEVXT")){
- int i = 0;
- for (String gw:xtoprnos){
- if(gw.equals(oprno)){
- des = xtoprnodes[i];
- break;
- }
- i++;
- }
- }else if(lineSn.equals("115XT")){
- int i = 0;
- for (String gw:lboprnos){
- if(gw.equals(oprno)){
- des = lboprnodes[i];
- break;
- }
- i++;
- }
- }
- return des;
- }
- public static String formatOprno(String oprno){
- List<String> lists = new ArrayList<>();
- if(oprno.length() == 6){
- String ysoprno = oprno.substring(0,5).trim();
- if(!lists.contains(ysoprno)){
- oprno = ysoprno;
- }
- }
- return oprno;
- }
- }
|