| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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[]{
- "OP220"
- };
- public static String[] xtoprnodes = new String[]{
- "总成反面装配2"
- };
- public static String[] lboprnos = new String[]{
- "OP040","OP050","OP060","OP070","OP080","OP090","OP100","OP110",
- "OP120","OP130","OP140","OP150","OP160","OP170","OP180","OP190",
- "OP200","OP210","OP220"
- };
- public static String[] lboprnodes = new String[]{
- "左右冷板FSW(反面)","左右冷板FSW(正面)","左右冷板正面CNC","左右冷板反面CNC","去毛刺吹铝屑","超声波清洗","冷板FSW堵头反面焊接","冷板FSW堵头正面焊接",
- "打磨焊道","水嘴自动激光焊","底护板支撑柱+BDU柱+线束支架焊接","冷板气检","冷板总成正面CNC","冷板总成反面CNC","去毛刺吹铝屑,清洁","高压冲洗",
- "M5+M6钢丝牙套安装","冷板汽检","冷板氦检"
- };
- public static String getGwDes(String lineSn,String oprno){
- String des = "";
- oprno = formatOprno(oprno);
- if(lineSn.equals("XT")){
- int i = 0;
- for (String gw:xtoprnos){
- if(gw.equals(oprno)){
- des = xtoprnodes[i];
- break;
- }
- i++;
- }
- }else if(lineSn.equals("LB")){
- 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;
- }
- }
|