|
|
@ -48,6 +48,10 @@ import com.teamcenter.rac.util.PropertyLayout;
|
|
|
|
|
|
|
|
|
|
|
|
public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private TCSession session;
|
|
|
|
private TCSession session;
|
|
|
|
private AbstractAIFApplication app;
|
|
|
|
private AbstractAIFApplication app;
|
|
|
|
// 表格
|
|
|
|
// 表格
|
|
|
@ -81,7 +85,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
private Map<String, String> map_types = new HashMap<>();
|
|
|
|
private Map<String, String> map_types = new HashMap<>();
|
|
|
|
// 存储为!的特殊情况 ,都申请
|
|
|
|
// 存储为!的特殊情况 ,都申请
|
|
|
|
private List<String> prefList = new ArrayList<String>();
|
|
|
|
private List<String> prefList = new ArrayList<String>();
|
|
|
|
private List<Integer> indList = new ArrayList<Integer>();
|
|
|
|
// private List<Integer> indList = new ArrayList<Integer>();
|
|
|
|
// 存储出厂编号类型对应的流水号
|
|
|
|
// 存储出厂编号类型对应的流水号
|
|
|
|
private Map<String, Integer> map_types_flow = new HashMap<>();
|
|
|
|
private Map<String, Integer> map_types_flow = new HashMap<>();
|
|
|
|
// 存储出厂编号类型中M007 配电变压器的日期+固定数
|
|
|
|
// 存储出厂编号类型中M007 配电变压器的日期+固定数
|
|
|
@ -102,6 +106,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
private Map<String, List<String>> map_type_factoryNos = new HashMap<String, List<String>>();
|
|
|
|
private Map<String, List<String>> map_type_factoryNos = new HashMap<String, List<String>>();
|
|
|
|
// String groupID = "";
|
|
|
|
// String groupID = "";
|
|
|
|
protected boolean isHave = false; // 针对DX
|
|
|
|
protected boolean isHave = false; // 针对DX
|
|
|
|
|
|
|
|
private boolean isAdd = false;
|
|
|
|
|
|
|
|
|
|
|
|
public FactoryNoZYDialog2zt(AbstractAIFApplication app, String actionInfo, ProgressBar init_pb) {
|
|
|
|
public FactoryNoZYDialog2zt(AbstractAIFApplication app, String actionInfo, ProgressBar init_pb) {
|
|
|
|
super(false);
|
|
|
|
super(false);
|
|
|
@ -118,8 +123,8 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
groupID = SAPUtil.getGroupID(session);
|
|
|
|
groupID = SAPUtil.getGroupID(session);
|
|
|
|
} catch (TCException e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -183,6 +188,11 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
|
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
|
|
|
|
tm_bom = new DefaultTableModel();
|
|
|
|
tm_bom = new DefaultTableModel();
|
|
|
|
t_bom = new JTable(tm_bom) {
|
|
|
|
t_bom = new JTable(tm_bom) {
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean isCellEditable(int row, int column) { // 选择列(第三列)设置可编辑
|
|
|
|
public boolean isCellEditable(int row, int column) { // 选择列(第三列)设置可编辑
|
|
|
|
if (column == 6) {
|
|
|
|
if (column == 6) {
|
|
|
@ -235,9 +245,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyMM");
|
|
|
|
|
|
|
|
Date date = new Date();
|
|
|
|
Date date = new Date();
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
|
|
|
|
System.out.println("map_fn_size:" + map_fn_size);
|
|
|
|
System.out.println("map_fn_size:" + map_fn_size);
|
|
|
|
System.out.println("map_num:" + map_num);
|
|
|
|
System.out.println("map_num:" + map_num);
|
|
|
|
for (int i = 0; i < rowCout; i++) {
|
|
|
|
for (int i = 0; i < rowCout; i++) {
|
|
|
@ -262,15 +270,19 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
isM006 = true;
|
|
|
|
isM006 = true;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
t_bom.setValueAt("K-" + project.getProperty(prefix0), i, 5);
|
|
|
|
t_bom.setValueAt("K-" + project.getProperty(prefix0), i, 5);
|
|
|
|
} catch (TCException e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else if(prefix0.equals(ztsvg)) {
|
|
|
|
}else if(prefix0.equals(ztsvg)) {
|
|
|
|
t_bom.setValueAt(prefix0, i, 5);
|
|
|
|
t_bom.setValueAt(prefix0, i, 5);
|
|
|
|
}
|
|
|
|
}else if(isAdd) {
|
|
|
|
else {
|
|
|
|
t_bom.setValueAt(prefix0, i, 5);
|
|
|
|
|
|
|
|
prefix0 = prefix0.substring(0, prefix0.length() - 4);
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyMM");
|
|
|
|
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
t_bom.setValueAt(prefix0 + dateString, i, 5);
|
|
|
|
t_bom.setValueAt(prefix0 + dateString, i, 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if(isM006 || isM007) {
|
|
|
|
// if(isM006 || isM007) {
|
|
|
@ -320,14 +332,14 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
StringBuilder sb = new StringBuilder("");
|
|
|
|
StringBuilder sb = new StringBuilder("");
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
Map<String, String> repeatMap = new HashMap<>();
|
|
|
|
Map<String, String> repeatMap = new HashMap<>();
|
|
|
|
FactoryNoZYBean bean;
|
|
|
|
// FactoryNoZYBean bean;
|
|
|
|
for (int i = 0; i < rowCout; i++) {
|
|
|
|
for (int i = 0; i < rowCout; i++) {
|
|
|
|
String prefix = (String) t_bom.getValueAt(i, 5);// 流水码前缀
|
|
|
|
String prefix = (String) t_bom.getValueAt(i, 5);// 流水码前缀
|
|
|
|
if(prefix.equals("/")) {
|
|
|
|
if(prefix.equals("/")) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String flowNo = (String) t_bom.getValueAt(i, 6);// 流水码
|
|
|
|
String flowNo = (String) t_bom.getValueAt(i, 6);// 流水码
|
|
|
|
bean = (FactoryNoZYBean) t_bom.getValueAt(i, 0);
|
|
|
|
// bean = (FactoryNoZYBean) t_bom.getValueAt(i, 0);
|
|
|
|
if (flowNo.trim().length() > 0) {
|
|
|
|
if (flowNo.trim().length() > 0) {
|
|
|
|
if (repeatMap.containsValue(prefix + flowNo)) {
|
|
|
|
if (repeatMap.containsValue(prefix + flowNo)) {
|
|
|
|
for (Map.Entry<String, String> me : repeatMap.entrySet()) {
|
|
|
|
for (Map.Entry<String, String> me : repeatMap.entrySet()) {
|
|
|
@ -402,7 +414,9 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SqlUtil.free();
|
|
|
|
SqlUtil.free();
|
|
|
|
if (factorNoFolder != null) {
|
|
|
|
if (factorNoFolder != null) {
|
|
|
|
|
|
|
|
KUtil.setByPass(false);
|
|
|
|
FactoryNoBean.sortFactory(factorNoFolder);
|
|
|
|
FactoryNoBean.sortFactory(factorNoFolder);
|
|
|
|
|
|
|
|
KUtil.setByPass(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -422,13 +436,21 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
new String[] { item_id });
|
|
|
|
new String[] { item_id });
|
|
|
|
// TCComponent[] comps = rev.getRelatedComponents(BomBuildDialogController.REL_FACTORYNO);
|
|
|
|
// TCComponent[] comps = rev.getRelatedComponents(BomBuildDialogController.REL_FACTORYNO);
|
|
|
|
// rev.cutOperation(BomBuildDialogController.REL_FACTORYNO, comps);
|
|
|
|
// rev.cutOperation(BomBuildDialogController.REL_FACTORYNO, comps);
|
|
|
|
|
|
|
|
AIFComponentContext pf = rev.getChildren(BomBuildDialogController.REL_FACTORYNO)[0];
|
|
|
|
|
|
|
|
for(AIFComponentContext c : pf.getComponent().getChildren()) {
|
|
|
|
|
|
|
|
TCComponent sub = (TCComponent) c.getComponent();
|
|
|
|
|
|
|
|
if(sub.getUid().equals(item[0].getUid())) {
|
|
|
|
|
|
|
|
rev.remove(BomBuildDialogController.REL_FACTORYNO, sub);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
rev.refresh();
|
|
|
|
rev.add(BomBuildDialogController.REL_FACTORYNO, item[0]);
|
|
|
|
rev.add(BomBuildDialogController.REL_FACTORYNO, item[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pb.disposeDialog();
|
|
|
|
pb.disposeDialog();
|
|
|
|
KUtil.info(FactoryNoZYDialog2zt.this, "保存出厂编号结束");
|
|
|
|
KUtil.info(FactoryNoZYDialog2zt.this, "保存出厂编号结束");
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
KUtil.setByPass(false);
|
|
|
|
//KUtil.setByPass(false);
|
|
|
|
pb.disposeDialog();
|
|
|
|
pb.disposeDialog();
|
|
|
|
MessageBox.post(FactoryNoZYDialog2zt.this, "分配出厂编号发生异常:" + e.getMessage(), "",
|
|
|
|
MessageBox.post(FactoryNoZYDialog2zt.this, "分配出厂编号发生异常:" + e.getMessage(), "",
|
|
|
|
MessageBox.ERROR);
|
|
|
|
MessageBox.ERROR);
|
|
|
@ -479,12 +501,12 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
if(numMap.size()>0) {
|
|
|
|
if(numMap.size()>0) {
|
|
|
|
isM007 = true;
|
|
|
|
isM007 = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Map<String , Integer> lenMap = new HashMap<String , Integer>();
|
|
|
|
// Map<String , Integer> lenMap = new HashMap<String , Integer>();
|
|
|
|
list_fn_types = new ArrayList<>(map_types.keySet());
|
|
|
|
list_fn_types = new ArrayList<>(map_types.keySet());
|
|
|
|
Collections.sort(list_fn_types, new Comparator<String>() {
|
|
|
|
Collections.sort(list_fn_types, new Comparator<String>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int compare(String o1, String o2) {
|
|
|
|
public int compare(String o1, String o2) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// Auto-generated method stub
|
|
|
|
return o2.compareTo(o1);
|
|
|
|
return o2.compareTo(o1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -513,10 +535,10 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
String prefix;
|
|
|
|
String prefix;
|
|
|
|
String p_code;
|
|
|
|
String p_code;
|
|
|
|
String temp;
|
|
|
|
String temp;
|
|
|
|
int indexs[];
|
|
|
|
// int indexs[];
|
|
|
|
int size = 1;
|
|
|
|
int size = 1;
|
|
|
|
String zt2_Quantity = "";
|
|
|
|
String zt2_Quantity = "";
|
|
|
|
int num, assign_num = 0;
|
|
|
|
// int num, assign_num = 0;
|
|
|
|
int ind = 0;
|
|
|
|
int ind = 0;
|
|
|
|
List<String> list_factoryNos;
|
|
|
|
List<String> list_factoryNos;
|
|
|
|
for (int i = 0, len = children.length; i < len; i++) {
|
|
|
|
for (int i = 0, len = children.length; i < len; i++) {
|
|
|
@ -560,10 +582,10 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
zt2_Quantity = rev.getStringProperty("zt2_Quantity");
|
|
|
|
zt2_Quantity = rev.getStringProperty("zt2_Quantity");
|
|
|
|
if (KUtil.isEmpty(zt2_Quantity)) {
|
|
|
|
if (KUtil.isEmpty(zt2_Quantity)) {
|
|
|
|
zt2_Quantity = "1";
|
|
|
|
zt2_Quantity = "1";
|
|
|
|
indexs = new int[] { 1 };
|
|
|
|
// indexs = new int[] { 1 };
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
int size2 = POIUtil.getIntValue(zt2_Quantity) == 0 ? 1 : POIUtil.getIntValue(zt2_Quantity);
|
|
|
|
// int size2 = POIUtil.getIntValue(zt2_Quantity) == 0 ? 1 : POIUtil.getIntValue(zt2_Quantity);
|
|
|
|
indexs = new int[size2];
|
|
|
|
// indexs = new int[size2];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bean.setMaterialName(object_name);
|
|
|
|
bean.setMaterialName(object_name);
|
|
|
@ -641,6 +663,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
map_fn_size.put(prefix, new Integer(size));
|
|
|
|
map_fn_size.put(prefix, new Integer(size));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// System.out.println("proPrefix1:" + proPrefix);
|
|
|
|
|
|
|
|
|
|
|
|
if (!map_type_factoryNos.containsKey(prefix)) {
|
|
|
|
if (!map_type_factoryNos.containsKey(prefix)) {
|
|
|
|
list_factoryNos = new ArrayList<String>();
|
|
|
|
list_factoryNos = new ArrayList<String>();
|
|
|
@ -658,9 +681,11 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
}else if (!KUtil.isEmpty(factoryID) && !KUtil.isEmpty(prefix) && !KUtil.isEmpty(p_code)) {
|
|
|
|
}else if (!KUtil.isEmpty(factoryID) && !KUtil.isEmpty(prefix) && !KUtil.isEmpty(p_code)) {
|
|
|
|
Integer integer = map_types_flow.get(proPrefix);
|
|
|
|
Integer integer = map_types_flow.get(proPrefix);
|
|
|
|
pref2 = factoryID.substring(0, factoryID.length() - integer);
|
|
|
|
pref2 = factoryID.substring(0, factoryID.length() - integer);
|
|
|
|
|
|
|
|
isAdd = true;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
pref2 = proPrefix;
|
|
|
|
pref2 = proPrefix;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// System.out.println("pref21:" + pref2);
|
|
|
|
bean.setFactNoItem(factoryItem);
|
|
|
|
bean.setFactNoItem(factoryItem);
|
|
|
|
bean.setFactNoItemID(factoryID);
|
|
|
|
bean.setFactNoItemID(factoryID);
|
|
|
|
bean.setPrefix(pref2);
|
|
|
|
bean.setPrefix(pref2);
|
|
|
@ -784,7 +809,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
System.out.println(map_fn_size);
|
|
|
|
System.out.println(map_fn_size);
|
|
|
|
Date date = new Date();
|
|
|
|
Date date = new Date();
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
String query = "select * from \"CHINT_M008_FactoryNo\" WHERE TIME='" + dateString + "'";
|
|
|
|
// String query = "select * from \"CHINT_M008_FactoryNo\" WHERE TIME='" + dateString + "'";
|
|
|
|
ResultSet rs = null;
|
|
|
|
ResultSet rs = null;
|
|
|
|
String selectQuery = "select * from \"CHINT_M008_FactoryNo\" where TYPE=? and TIME=?";
|
|
|
|
String selectQuery = "select * from \"CHINT_M008_FactoryNo\" where TYPE=? and TIME=?";
|
|
|
|
String insertQuery = "insert into \"CHINT_M008_FactoryNo\" (TYPE,TIME,FLOW) values (?,?,'001')";
|
|
|
|
String insertQuery = "insert into \"CHINT_M008_FactoryNo\" (TYPE,TIME,FLOW) values (?,?,'001')";
|
|
|
@ -835,7 +860,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
factoryID = "K-" + project.getProperty(type);
|
|
|
|
factoryID = "K-" + project.getProperty(type);
|
|
|
|
} catch (TCException e) {
|
|
|
|
} catch (TCException e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -861,9 +886,7 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
int rowCout = t_bom.getRowCount();
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyMM");
|
|
|
|
|
|
|
|
Date date = new Date();
|
|
|
|
Date date = new Date();
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
|
|
|
|
System.out.println("map_fn_size:" + map_fn_size);
|
|
|
|
System.out.println("map_fn_size:" + map_fn_size);
|
|
|
|
System.out.println("map_num:" + map_num);
|
|
|
|
System.out.println("map_num:" + map_num);
|
|
|
|
for(String key : map_num.keySet()) {
|
|
|
|
for(String key : map_num.keySet()) {
|
|
|
@ -897,15 +920,19 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ylId = "K-" + project.getProperty(prefix0);
|
|
|
|
ylId = "K-" + project.getProperty(prefix0);
|
|
|
|
// t_bom.setValueAt("K-" + project.getProperty(prefix0), i, 5);
|
|
|
|
// t_bom.setValueAt("K-" + project.getProperty(prefix0), i, 5);
|
|
|
|
} catch (TCException e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}else if(prefix0.equals(ztsvg)) {
|
|
|
|
}else if(prefix0.equals(ztsvg)) {
|
|
|
|
ylId = prefix0;
|
|
|
|
ylId = prefix0;
|
|
|
|
}
|
|
|
|
}else if(isAdd) {
|
|
|
|
else {
|
|
|
|
ylId = prefix0;
|
|
|
|
|
|
|
|
prefix0 = prefix0.substring(0, prefix0.length() - 4);
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyMM");
|
|
|
|
|
|
|
|
String dateString = sdf.format(date);
|
|
|
|
ylId = prefix0 + dateString;
|
|
|
|
ylId = prefix0 + dateString;
|
|
|
|
// t_bom.setValueAt(prefix0 + dateString, i, 5);
|
|
|
|
// t_bom.setValueAt(prefix0 + dateString, i, 5);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -913,13 +940,15 @@ public class FactoryNoZYDialog2zt extends AbstractAIFDialog {
|
|
|
|
if (map_fn_size.containsKey(prefix0)) {
|
|
|
|
if (map_fn_size.containsKey(prefix0)) {
|
|
|
|
int numX = map_num_yl.get(prefix0);
|
|
|
|
int numX = map_num_yl.get(prefix0);
|
|
|
|
Integer integer = map_types_flow.get(prefix0);
|
|
|
|
Integer integer = map_types_flow.get(prefix0);
|
|
|
|
String c = "%0"+integer+"d";
|
|
|
|
String c = "%0" + integer + "d";
|
|
|
|
ylId = ylId + String.format(c, numX);
|
|
|
|
ylId = ylId + String.format(c, numX);
|
|
|
|
|
|
|
|
// System.out.println("ylId1==>" + ylId);
|
|
|
|
// t_bom.setValueAt(String.format(c, numX), i, 6);
|
|
|
|
// t_bom.setValueAt(String.format(c, numX), i, 6);
|
|
|
|
int numXx = numX+1;
|
|
|
|
int numXx = numX + 1;
|
|
|
|
map_num_yl.put(prefix0, numXx);
|
|
|
|
map_num_yl.put(prefix0, numXx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ylId = KUtil.getRedText(ylId);
|
|
|
|
ylId = KUtil.getRedText(ylId);
|
|
|
|
|
|
|
|
// System.out.println("ylId2==>" + ylId);
|
|
|
|
this.t_bom.setValueAt(ylId, i, 7);
|
|
|
|
this.t_bom.setValueAt(ylId, i, 7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// n_assign.setEnabled(false);
|
|
|
|
// n_assign.setEnabled(false);
|
|
|
|