|
|
|
@ -13,6 +13,7 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import javax.swing.filechooser.FileSystemView;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang.ObjectUtils.Null;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFCell;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFRow;
|
|
|
|
@ -29,6 +30,7 @@ import com.connor.dfl.plm.util.ProgressBarThread;
|
|
|
|
|
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
|
|
|
import com.teamcenter.rac.aif.AbstractAIFOperation;
|
|
|
|
|
import com.teamcenter.rac.aif.kernel.AIFComponentContext;
|
|
|
|
|
import com.teamcenter.rac.aif.kernel.IPreferenceService;
|
|
|
|
|
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
|
|
|
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
|
|
|
import com.teamcenter.rac.kernel.*;
|
|
|
|
@ -40,6 +42,7 @@ import com.teamcenter.rac.psebase.AbstractBOMLineViewerApplication;
|
|
|
|
|
import com.teamcenter.rac.psebase.common.AbstractViewableTreeTable;
|
|
|
|
|
import com.teamcenter.rac.treetable.TreeTableNode;
|
|
|
|
|
import com.teamcenter.rac.util.MessageBox;
|
|
|
|
|
import com.teamcenter.soaictstubs.stringSeq_tHolder;
|
|
|
|
|
|
|
|
|
|
public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
private AbstractAIFApplication app;
|
|
|
|
@ -47,10 +50,11 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
private ProgressBarThread wait;
|
|
|
|
|
private List<String> attrList;
|
|
|
|
|
private List<List> list = new ArrayList<List>();
|
|
|
|
|
|
|
|
|
|
private List<String> idlist = new ArrayList<String>();
|
|
|
|
|
private List<String> errList = new ArrayList<String>();
|
|
|
|
|
|
|
|
|
|
private String xuninum = "0";
|
|
|
|
|
private String xuanzhongid = null;
|
|
|
|
|
|
|
|
|
|
private String item_id1 = "";//品号 item_id
|
|
|
|
|
private String name1 = "";//名称 object_name
|
|
|
|
@ -58,6 +62,8 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
private String unit1 = "";//单位 t2_unit
|
|
|
|
|
private String design_num1;//设计用量 bl_quantity
|
|
|
|
|
private String brand1 = "";//品牌
|
|
|
|
|
private String group1 = "";//分群码
|
|
|
|
|
private String source1 = "";//来源码
|
|
|
|
|
private String weihao1 = "";//编号 T2_weihao
|
|
|
|
|
private String importance1 = "";//重要度 t2_BOMImportance
|
|
|
|
|
private int xuhao1 ;
|
|
|
|
@ -80,7 +86,7 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
System.out.println("开始获取BOM模板");
|
|
|
|
|
String puid = session.getPreferenceService().getStringValue("DFL_BOM_UID");
|
|
|
|
|
String puid = session.getPreferenceService().getStringValue("DFL_BOM_UID2");
|
|
|
|
|
System.out.println("puid======================"+puid);
|
|
|
|
|
if (puid == null||"".equals(puid)) {
|
|
|
|
|
MessageBox.post("首选项DFL_BOM_UID未配置,请联系管理员!!",
|
|
|
|
@ -94,21 +100,22 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
FileSystemView fsv = FileSystemView.getFileSystemView();
|
|
|
|
|
String pathRoute = fsv.getHomeDirectory().getPath() + File.separator + "BOM汇总表" + time + ".xlsx";
|
|
|
|
|
String pathRoute1 = fsv.getHomeDirectory().getPath() + File.separator + "BOM对照表" + time + ".xlsx";
|
|
|
|
|
wait = new ProgressBarThread("导出汇总表和对照表", "执行中,请稍等...");
|
|
|
|
|
wait = new ProgressBarThread("导出对照表", "执行中,请稍等...");
|
|
|
|
|
wait.start();// 开启进度条
|
|
|
|
|
TCComponentBOMLine line = (TCComponentBOMLine) app.getTargetComponent();
|
|
|
|
|
xuanzhongid = line.getStringProperty("awb0BomLineItemId");
|
|
|
|
|
try {
|
|
|
|
|
int level = 0;
|
|
|
|
|
int num = 0;
|
|
|
|
|
getAndSetValue(line,level,num);
|
|
|
|
|
writeToExcel(file,pathRoute);
|
|
|
|
|
System.out.println("8.10(1)====="+list);
|
|
|
|
|
//getAndSetValue(line,level,num);
|
|
|
|
|
//writeToExcel(file,pathRoute);
|
|
|
|
|
//System.out.println("8.10(1)====="+list);
|
|
|
|
|
list.clear();
|
|
|
|
|
System.out.println("8.10(2)====="+list);
|
|
|
|
|
//System.out.println("8.10(2)====="+list);
|
|
|
|
|
getAndSetValue1(line,level,num);
|
|
|
|
|
|
|
|
|
|
writeToExcel(file,pathRoute1);
|
|
|
|
|
System.out.println("9.15(3)====="+list);
|
|
|
|
|
//System.out.println("9.15(3)====="+list);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
|
e.printStackTrace();
|
|
|
|
@ -132,16 +139,30 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//对照表的获取方法
|
|
|
|
|
private void getAndSetValue1(TCComponentBOMLine bomLine,int level,int num) {
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
try {
|
|
|
|
|
//通过解包方法来解包
|
|
|
|
|
Unpack(bomLine);
|
|
|
|
|
System.out.println("level================"+level);
|
|
|
|
|
//System.out.println("level================"+level);
|
|
|
|
|
String firstnum = "";
|
|
|
|
|
//TCComponentItemRevision eqrev = bomLine.getItemRevision();
|
|
|
|
|
String firstid = bomLine.getStringProperty("awb0BomLineItemId");
|
|
|
|
|
|
|
|
|
|
//判断是不是第一层级
|
|
|
|
|
if(xuanzhongid.equals(firstid)) {
|
|
|
|
|
firstnum = "1";
|
|
|
|
|
}else {
|
|
|
|
|
getItemValue1(bomLine,level,num);
|
|
|
|
|
firstnum =design_num1;
|
|
|
|
|
System.out.println("9.22.19.32第一层级数量====="+firstnum);
|
|
|
|
|
}
|
|
|
|
|
//获得子级对象
|
|
|
|
|
AIFComponentContext[] childs = bomLine.getChildren();
|
|
|
|
|
//
|
|
|
|
|
//判断是否有子级
|
|
|
|
|
if(childs != null && childs.length > 0 ) {
|
|
|
|
|
//层级+1
|
|
|
|
|
//level++;
|
|
|
|
@ -153,16 +174,22 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
TCComponentItemRevision rev = ((TCComponentBOMLine) comp).getItemRevision();
|
|
|
|
|
String type = rev.getStringProperty("object_type");
|
|
|
|
|
String occType = bomLine.getStringProperty("TCAI_OCC_TYPE");
|
|
|
|
|
//判断数量是否为0
|
|
|
|
|
if("0".equals(firstnum)) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//判断是否属于bomline
|
|
|
|
|
if(comp instanceof TCComponentBOMLine) {
|
|
|
|
|
//如果版本类型是外购件版本或者外协件版本则获取属性
|
|
|
|
|
if (!"Reference".equals(occType))
|
|
|
|
|
{
|
|
|
|
|
if("T2_outsourceRevision".equals(type) || "T2_OutBuyPartRevision".equals(type)) {
|
|
|
|
|
//序号+1
|
|
|
|
|
num++;
|
|
|
|
|
//判断是否为无需传递的物料
|
|
|
|
|
if (!"Reference".equals(occType))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
List<String> beanList1 = new ArrayList<String>();
|
|
|
|
|
|
|
|
|
|
//将遍历的对象强转类型为bomline
|
|
|
|
|
TCComponentBOMLine ziLine = (TCComponentBOMLine) comp;
|
|
|
|
|
getItemValue1(ziLine,level,num);
|
|
|
|
@ -171,9 +198,10 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
System.out.println("a--915======"+a);
|
|
|
|
|
double b = Double.valueOf(design_num1).doubleValue();
|
|
|
|
|
System.out.println("b--915======"+b);
|
|
|
|
|
double c = a*b;
|
|
|
|
|
double c = Double.valueOf(firstnum).doubleValue();
|
|
|
|
|
System.out.println("c--915======"+c);
|
|
|
|
|
design_num1 = ""+c;
|
|
|
|
|
double d = a*b;
|
|
|
|
|
design_num1 = ""+d;
|
|
|
|
|
System.out.println("design_num9.15======"+design_num1);
|
|
|
|
|
String xuhao2 = xuhao1+"";
|
|
|
|
|
//添加属性到字符串集合中
|
|
|
|
@ -185,40 +213,97 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
beanList1.add(unit1);
|
|
|
|
|
beanList1.add(design_num1);
|
|
|
|
|
beanList1.add(brand1);
|
|
|
|
|
beanList1.add(group1);
|
|
|
|
|
beanList1.add(source1);
|
|
|
|
|
beanList1.add(weihao1);
|
|
|
|
|
beanList1.add(importance1);
|
|
|
|
|
System.out.println("beanList19.15====="+beanList1);
|
|
|
|
|
//先做布尔逻辑判断
|
|
|
|
|
boolean include=idlist.contains(item_id1);//true
|
|
|
|
|
//System.out.println("测试是否包含9.18====="+include);
|
|
|
|
|
boolean panduan = true;
|
|
|
|
|
//再将id存放在idlist
|
|
|
|
|
idlist.add(item_id1);
|
|
|
|
|
//System.out.println("idlist9.18====="+idlist);
|
|
|
|
|
//添加字符串集合到集合中
|
|
|
|
|
if (include == panduan) {
|
|
|
|
|
//遍历集合list
|
|
|
|
|
|
|
|
|
|
for (int j = 0; j < list.size(); j++) {
|
|
|
|
|
int m = list.size();
|
|
|
|
|
//System.out.println("9.18list的长度"+m);
|
|
|
|
|
List<String> beanList2 = new ArrayList<String>();
|
|
|
|
|
beanList2 = list.get(j);
|
|
|
|
|
//System.out.println("9.18beanList2====="+beanList2);
|
|
|
|
|
boolean include1=beanList2.contains(item_id1);//true
|
|
|
|
|
//如果为真,则修改数量
|
|
|
|
|
if(include1 == panduan) {
|
|
|
|
|
String numString = null;
|
|
|
|
|
for(int k = 0 ; k<=beanList2.size() ; k++) {
|
|
|
|
|
numString = beanList2.get(5);
|
|
|
|
|
System.out.println("数量9.18====="+numString);
|
|
|
|
|
}
|
|
|
|
|
double before = Double.valueOf(numString).doubleValue();
|
|
|
|
|
double add = Double.valueOf(design_num1).doubleValue();
|
|
|
|
|
double sum = before+add;
|
|
|
|
|
//String sum = ""+before+add;
|
|
|
|
|
System.out.println("9.18sum====="+sum);
|
|
|
|
|
beanList2.set(5, ""+sum);
|
|
|
|
|
list.set(j, beanList2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else if(include!=panduan){
|
|
|
|
|
list.add(beanList1);
|
|
|
|
|
System.out.println("list9.15====="+list);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//如果不是外购外协件则递归此方法
|
|
|
|
|
else {
|
|
|
|
|
TCComponentBOMLine ziLine = (TCComponentBOMLine) comp;
|
|
|
|
|
String xuniid = ziLine.getStringProperty("awb0BomLineItemId");
|
|
|
|
|
|
|
|
|
|
//判断如果没有该虚拟件下没有物料,则跳出此循环
|
|
|
|
|
AIFComponentContext[] childs23 = ziLine.getChildren();
|
|
|
|
|
int geshu = childs23.length;
|
|
|
|
|
System.out.println("个数为9.22====="+geshu+"====="+xuniid);
|
|
|
|
|
if (childs23.length <= 0 ) {
|
|
|
|
|
System.out.println("9.22执行跳出操作");
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//System.out.println("9.22虚拟件id === ==="+xuniid);
|
|
|
|
|
design_num1 = "1";
|
|
|
|
|
//先将虚拟件(xuninum)的值设为获取到的值
|
|
|
|
|
xuninum = design_num1;
|
|
|
|
|
System.out.println("8.12虚拟件数量"+xuninum);
|
|
|
|
|
System.out.println("8.12虚拟件数量"+xuninum+"===9.22虚拟件id==="+xuniid);
|
|
|
|
|
//设置虚拟件数量为double类型a
|
|
|
|
|
double a = Double.valueOf(xuninum).doubleValue();
|
|
|
|
|
System.out.println("8.12虚拟件的double数量a"+a);
|
|
|
|
|
System.out.println("8.12虚拟件的double数量a"+a+"===9.22虚拟件id==="+xuniid);
|
|
|
|
|
getItemValue1(ziLine,level,xuhao1);
|
|
|
|
|
//设置获取的数量为double类型b
|
|
|
|
|
System.out.println("9.22运行方法后获得design_num1的值====="+design_num1);
|
|
|
|
|
double b = Double.valueOf(design_num1).doubleValue();
|
|
|
|
|
System.out.println("8.12虚拟件的double数量b"+b);
|
|
|
|
|
System.out.println("8.12虚拟件的double数量b"+b+"===9.22虚拟件id==="+xuniid);
|
|
|
|
|
|
|
|
|
|
//double c = a*b;
|
|
|
|
|
double c = Double.valueOf(firstnum).doubleValue();
|
|
|
|
|
System.out.println("c--915======"+c);
|
|
|
|
|
//得到相乘的数量
|
|
|
|
|
double c = a*b;
|
|
|
|
|
System.out.println("8.12虚拟件的double数量c"+c);
|
|
|
|
|
design_num1 = ""+c;
|
|
|
|
|
double d = a*b*c;
|
|
|
|
|
System.out.println("8.12虚拟件的double数量c"+d+"===9.22虚拟件id==="+xuniid);
|
|
|
|
|
design_num1 = ""+d;
|
|
|
|
|
//而后获得一个乘积的值赋予给xuninum
|
|
|
|
|
xuninum = design_num1;
|
|
|
|
|
System.out.println("8.12第一个虚拟件"+xuninum);
|
|
|
|
|
System.out.println("8.12第一个虚拟件"+xuninum+"===9.22虚拟件id==="+xuniid);
|
|
|
|
|
|
|
|
|
|
//递归
|
|
|
|
|
getAndSetValue1(ziLine,level,xuhao1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//level--;
|
|
|
|
|
}
|
|
|
|
|
} catch (TCException e) {
|
|
|
|
@ -452,6 +537,8 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
String unit = "";//单位 t2_unit
|
|
|
|
|
String design_num = "";//设计用量 bl_quantity
|
|
|
|
|
String brand = "";//品牌
|
|
|
|
|
String group = "";//分群码
|
|
|
|
|
String source = "";//来源码
|
|
|
|
|
String weihao = "";//编号 T2_weihao
|
|
|
|
|
String importance = "";//重要度 t2_BOMImportance
|
|
|
|
|
String xuhao = num + "";
|
|
|
|
@ -469,6 +556,8 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
String type = rev.getStringProperty("object_type");
|
|
|
|
|
group = rev.getStringProperty("t2_groupCode");
|
|
|
|
|
source = rev.getStringProperty("t2_sourceCode");
|
|
|
|
|
weihao = comp.getStringProperty("T2_weihao");
|
|
|
|
|
importance = comp.getStringProperty("t2_BOMImportance");
|
|
|
|
|
item_id = rev.getStringProperty("item_id");
|
|
|
|
@ -567,6 +656,8 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
beanList.add(unit);
|
|
|
|
|
beanList.add(design_num);
|
|
|
|
|
beanList.add(brand);
|
|
|
|
|
beanList.add(group);
|
|
|
|
|
beanList.add(source);
|
|
|
|
|
beanList.add(weihao);
|
|
|
|
|
beanList.add(importance);
|
|
|
|
|
list.add(beanList);
|
|
|
|
@ -577,6 +668,7 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
|
|
|
|
|
//lev1 = level + "";
|
|
|
|
|
TCComponentItemRevision rev = comp.getItemRevision();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
design_num1 = comp.getStringProperty("T2_ActualConsumption");
|
|
|
|
|
//如果实际用量是打包的,则解包再判断
|
|
|
|
@ -598,12 +690,16 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
else if(design_num1 == null || "".equals(design_num1) || " ".equals(design_num1)) {
|
|
|
|
|
design_num1 = comp.getStringProperty("bl_quantity");
|
|
|
|
|
if(design_num1 == null || "".equals(design_num1) || " ".equals(design_num1)) {
|
|
|
|
|
design_num1 = "1";
|
|
|
|
|
design_num1 = "0";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String type = rev.getStringProperty("object_type");
|
|
|
|
|
group1 = rev.getStringProperty("t2_groupCode");
|
|
|
|
|
getgroup();
|
|
|
|
|
source1 = rev.getStringProperty("t2_sourceCode");
|
|
|
|
|
getsource();
|
|
|
|
|
weihao1 = comp.getStringProperty("T2_weihao");
|
|
|
|
|
importance1 = comp.getStringProperty("t2_BOMImportance");
|
|
|
|
|
item_id1 = rev.getStringProperty("item_id");
|
|
|
|
@ -665,6 +761,7 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
//选中的对象的版本
|
|
|
|
|
TCComponentItemRevision rev = ((TCComponentBOMLine) comp).getItemRevision();
|
|
|
|
|
String type = rev.getStringProperty("object_type");
|
|
|
|
|
|
|
|
|
|
String occType = unpackLine.getStringProperty("TCAI_OCC_TYPE");
|
|
|
|
|
//判断是否属于bomline
|
|
|
|
|
if(comp instanceof TCComponentBOMLine) {
|
|
|
|
@ -698,5 +795,150 @@ public class BOMExportOperation extends AbstractAIFOperation {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//匹配分群码
|
|
|
|
|
private void getgroup() {
|
|
|
|
|
if("F10".equals(group1)) {
|
|
|
|
|
group1 = "机电设备";
|
|
|
|
|
}
|
|
|
|
|
if("F11".equals(group1)) {
|
|
|
|
|
group1 = "换热分离设备";
|
|
|
|
|
}
|
|
|
|
|
if("F12".equals(group1)) {
|
|
|
|
|
group1 = "阀类";
|
|
|
|
|
}
|
|
|
|
|
if("F13".equals(group1)) {
|
|
|
|
|
group1 = "过滤器类";
|
|
|
|
|
}
|
|
|
|
|
if("F14".equals(group1)) {
|
|
|
|
|
group1 = "密封类";
|
|
|
|
|
}
|
|
|
|
|
if("F15".equals(group1)) {
|
|
|
|
|
group1 = "传动轨道类";
|
|
|
|
|
}
|
|
|
|
|
if("F16".equals(group1)) {
|
|
|
|
|
group1 = "视觉类";
|
|
|
|
|
}
|
|
|
|
|
if("F17".equals(group1)) {
|
|
|
|
|
group1 = "电器控制类";
|
|
|
|
|
}
|
|
|
|
|
if("F18".equals(group1)) {
|
|
|
|
|
group1 = "仪器仪表类";
|
|
|
|
|
}
|
|
|
|
|
if("F19".equals(group1)) {
|
|
|
|
|
group1 = "原材料类";
|
|
|
|
|
}
|
|
|
|
|
if("F20".equals(group1)) {
|
|
|
|
|
group1 = "化学品/油品类";
|
|
|
|
|
}
|
|
|
|
|
if("F21".equals(group1)) {
|
|
|
|
|
group1 = "五金类";
|
|
|
|
|
}
|
|
|
|
|
if("F22".equals(group1)) {
|
|
|
|
|
group1 = "辅料";
|
|
|
|
|
}
|
|
|
|
|
if("F23".equals(group1)) {
|
|
|
|
|
group1 = "药用包材";
|
|
|
|
|
}
|
|
|
|
|
if("F24".equals(group1)) {
|
|
|
|
|
group1 = "医用耗材";
|
|
|
|
|
}
|
|
|
|
|
if("F99".equals(group1)) {
|
|
|
|
|
group1 = "工具";
|
|
|
|
|
}
|
|
|
|
|
if("F50".equals(group1)) {
|
|
|
|
|
group1 = "企标件";
|
|
|
|
|
}
|
|
|
|
|
if("F51".equals(group1)) {
|
|
|
|
|
group1 = "冻干机";
|
|
|
|
|
}
|
|
|
|
|
if("F52".equals(group1)) {
|
|
|
|
|
group1 = "进出料";
|
|
|
|
|
}
|
|
|
|
|
if("F53".equals(group1)) {
|
|
|
|
|
group1 = "隔离器";
|
|
|
|
|
}
|
|
|
|
|
if("F54".equals(group1)) {
|
|
|
|
|
group1 = "配液";
|
|
|
|
|
}
|
|
|
|
|
if("F55".equals(group1)) {
|
|
|
|
|
group1 = "洗瓶机";
|
|
|
|
|
}
|
|
|
|
|
if("F56".equals(group1)) {
|
|
|
|
|
group1 = "烘箱";
|
|
|
|
|
}
|
|
|
|
|
if("F57".equals(group1)) {
|
|
|
|
|
group1 = "灌装机";
|
|
|
|
|
}
|
|
|
|
|
if("F58".equals(group1)) {
|
|
|
|
|
group1 = "轧盖机";
|
|
|
|
|
}
|
|
|
|
|
if("F60".equals(group1)) {
|
|
|
|
|
group1 = "灭菌柜";
|
|
|
|
|
}
|
|
|
|
|
if("F61".equals(group1)) {
|
|
|
|
|
group1 = "灯检机";
|
|
|
|
|
}
|
|
|
|
|
if("F62".equals(group1)) {
|
|
|
|
|
group1 = "包装线";
|
|
|
|
|
}
|
|
|
|
|
if("F63".equals(group1)) {
|
|
|
|
|
group1 = "医疗装备";
|
|
|
|
|
}
|
|
|
|
|
if("F64".equals(group1)) {
|
|
|
|
|
group1 = "制水";
|
|
|
|
|
}
|
|
|
|
|
if("F65".equals(group1)) {
|
|
|
|
|
group1 = "BFS";
|
|
|
|
|
}
|
|
|
|
|
if("F66".equals(group1)) {
|
|
|
|
|
group1 = "原料药 精干包项目";
|
|
|
|
|
}
|
|
|
|
|
if("F67".equals(group1)) {
|
|
|
|
|
group1 = "原料药 工程项目";
|
|
|
|
|
}
|
|
|
|
|
if("F68".equals(group1)) {
|
|
|
|
|
group1 = "固体制剂";
|
|
|
|
|
}
|
|
|
|
|
if("F69".equals(group1)) {
|
|
|
|
|
group1 = "基础制造";
|
|
|
|
|
}
|
|
|
|
|
if("F70".equals(group1)) {
|
|
|
|
|
group1 = "生物工程";
|
|
|
|
|
}
|
|
|
|
|
if("F71".equals(group1)) {
|
|
|
|
|
group1 = "预灌封";
|
|
|
|
|
}
|
|
|
|
|
if("F72".equals(group1)) {
|
|
|
|
|
group1 = "清洗机";
|
|
|
|
|
}
|
|
|
|
|
if("F73".equals(group1)) {
|
|
|
|
|
group1 = "食品装备";
|
|
|
|
|
}
|
|
|
|
|
if("F74".equals(group1)) {
|
|
|
|
|
group1 = "医用包材";
|
|
|
|
|
}
|
|
|
|
|
if("F75".equals(group1)) {
|
|
|
|
|
group1 = "总控外协";
|
|
|
|
|
}
|
|
|
|
|
if("F76".equals(group1)) {
|
|
|
|
|
group1 = "冻融机";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//匹配来源码
|
|
|
|
|
private void getsource() {
|
|
|
|
|
//M 自制件
|
|
|
|
|
|
|
|
|
|
if("M".equals(source1)){
|
|
|
|
|
source1 = "自制件";
|
|
|
|
|
}
|
|
|
|
|
//P 采购件
|
|
|
|
|
if("P".equals(source1)){
|
|
|
|
|
source1 = "采购件";
|
|
|
|
|
}
|
|
|
|
|
//X 虚拟件
|
|
|
|
|
if("X".equals(source1)) {
|
|
|
|
|
source1 = "虚拟件";
|
|
|
|
|
}
|
|
|
|
|
System.out.println("调用方法source1==9.22====="+source1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|