| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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[]{
- "OP040","OP050","OP060","OP070","OP080","OP090","OP100",
- "OP110","OP120","OP130","OP140","OP150","OP170","OP190",
- "OP200","OP210","OP220","OP230","OP240","OP250","OP260",
- "OP270","OP280","OP290","OP300","OP310","OP320","OP340",
- "OP350","OP360","OP370","OP370","OP380","OP390","OP400","OP410","OP420"
- };
- public static String[] xtoprnodes = new String[]{
- "镭雕二维码","前边梁压铆,单部件拉铆","框架CMT焊接","人工补焊",
- "焊道检查","焊道打磨","","框架气密","框架反面CNC加工+去毛刺","框架反面,吹铝屑+清洁",
- "框架涂胶","液冷板安装+水冷板点焊","液冷板FSW","匙孔补焊+匙孔补焊打磨",
- "总成正面CNC+去毛刺","总成正面,吹铝屑+清洁","总成正面装配","套筒涂胶","封堵片焊接",
- "左右边梁封堵","半成品气密","VHB胶带粘贴+冷板泡棉粘贴","冷板背面涂胶",
- "底护板清洗","安装底护板","成品气密","液冷板气密","总成检具检验","箱体封堵",
- "总成清洁","粘贴云母片","CCD","终检","GP12正面","后梁底涂镭雕","GP12反面","包装"
- };
- public static String[] lboprnos = new String[]{
- };
- public static String[] lboprnodes = new String[]{
- };
- 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;
- }
- }
|