|
|
@ -132,265 +132,10 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
// ÉèÖÃÊôÐÔ
|
|
|
|
// ÉèÖÃÊôÐÔ
|
|
|
|
model = new CTMap(47, 20);
|
|
|
|
model = new CTMap(47, 20);
|
|
|
|
bottom = model.getRowCount() - end;
|
|
|
|
bottom = model.getRowCount() - end;
|
|
|
|
disableEdit = new ArrayList<>();// 不允许编辑
|
|
|
|
|
|
|
|
general = new HashMap<String, int[]>();// 要填写的一般属性
|
|
|
|
|
|
|
|
pic = new HashMap<String, int[]>();// 图片
|
|
|
|
|
|
|
|
model.setValueAt("样品确认单", 0, 0);
|
|
|
|
|
|
|
|
disableEdit.add("0,0");
|
|
|
|
|
|
|
|
model.setValueAt("提交", 0, 14);
|
|
|
|
|
|
|
|
disableEdit.add("0,14");
|
|
|
|
|
|
|
|
model.setValueAt("审核", 0, 16);
|
|
|
|
|
|
|
|
disableEdit.add("0,16");
|
|
|
|
|
|
|
|
model.setValueAt("批准", 0, 18);
|
|
|
|
|
|
|
|
disableEdit.add("0,18");
|
|
|
|
|
|
|
|
model.setValueAt("部门", 2, 0);
|
|
|
|
|
|
|
|
disableEdit.add("2,0");
|
|
|
|
|
|
|
|
model.setValueAt("滚筒研发", 2, 2);
|
|
|
|
|
|
|
|
disableEdit.add("2,2");
|
|
|
|
|
|
|
|
general.put("jd2_bz", new int[] { 2, 14 });
|
|
|
|
|
|
|
|
disableEdit.add("2,14");
|
|
|
|
|
|
|
|
general.put("jd2_sh", new int[] { 2, 16 });
|
|
|
|
|
|
|
|
disableEdit.add("2,16");
|
|
|
|
|
|
|
|
general.put("jd2_pz", new int[] { 2, 18 });
|
|
|
|
|
|
|
|
disableEdit.add("2,18");
|
|
|
|
|
|
|
|
model.setValueAt("创建日期", 4, 0);
|
|
|
|
|
|
|
|
disableEdit.add("4,0");
|
|
|
|
|
|
|
|
general.put("creation_date", new int[] { 4, 2 });
|
|
|
|
|
|
|
|
disableEdit.add("4,2");
|
|
|
|
|
|
|
|
model.setValueAt("创建人", 4, 5);
|
|
|
|
|
|
|
|
disableEdit.add("4,5");
|
|
|
|
|
|
|
|
general.put("owning_user", new int[] { 4, 7 });
|
|
|
|
|
|
|
|
disableEdit.add("4,7");
|
|
|
|
|
|
|
|
general.put("jd2_bzrq", new int[] { 4, 14 });
|
|
|
|
|
|
|
|
disableEdit.add("4,14");
|
|
|
|
|
|
|
|
general.put("jd2_shrq", new int[] { 4, 16 });
|
|
|
|
|
|
|
|
disableEdit.add("4,16");
|
|
|
|
|
|
|
|
general.put("jd2_pzrq", new int[] { 4, 18 });
|
|
|
|
|
|
|
|
disableEdit.add("4,18");
|
|
|
|
|
|
|
|
model.setValueAt("零件名", 6, 0);
|
|
|
|
|
|
|
|
disableEdit.add("6,0");
|
|
|
|
|
|
|
|
general.put("jd2_ljm", new int[] { 6, 2 });
|
|
|
|
|
|
|
|
general.put("jd2_ljywm", new int[] { 6, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("型号", 6, 8);
|
|
|
|
|
|
|
|
disableEdit.add("6,8");
|
|
|
|
|
|
|
|
general.put("jd2_xh", new int[] { 6, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("分类", 6, 14);
|
|
|
|
|
|
|
|
disableEdit.add("6,14");
|
|
|
|
|
|
|
|
general.put("jd2_fl", new int[] { 6, 17 });
|
|
|
|
|
|
|
|
model.setValueAt("物料编码", 7, 0);
|
|
|
|
|
|
|
|
disableEdit.add("7,0");
|
|
|
|
|
|
|
|
general.put("jd2_wlbm", new int[] { 7, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("送样数量", 7, 8);
|
|
|
|
|
|
|
|
disableEdit.add("7,8");
|
|
|
|
|
|
|
|
yssl = new JRadioPanel(new String[] { "3", "5", "10", "30" });
|
|
|
|
|
|
|
|
model.setValueAt(yssl, 7, 10);
|
|
|
|
|
|
|
|
model.setValueAt("状态", 7, 14);
|
|
|
|
|
|
|
|
disableEdit.add("7,14");
|
|
|
|
|
|
|
|
general.put("jd2_zt", new int[] { 7, 17 });
|
|
|
|
|
|
|
|
model.setValueAt("部品等级", 8, 0);
|
|
|
|
|
|
|
|
disableEdit.add("8,0");
|
|
|
|
|
|
|
|
general.put("jd2_bpdj", new int[] { 8, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("参考物料", 8, 8);
|
|
|
|
|
|
|
|
disableEdit.add("8,8");
|
|
|
|
|
|
|
|
model.setValueAt("jd2_ckwl", 8, 10);
|
|
|
|
|
|
|
|
general.put("jd2_ckwl", new int[] { 8, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("图号", 9, 0);
|
|
|
|
|
|
|
|
disableEdit.add("9,0");
|
|
|
|
|
|
|
|
general.put("jd2_th", new int[] { 9, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("规格", 10, 0);
|
|
|
|
|
|
|
|
disableEdit.add("10,0");
|
|
|
|
|
|
|
|
general.put("jd2_gg", new int[] { 10, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("供应商", 11, 0);
|
|
|
|
|
|
|
|
disableEdit.add("11,0");
|
|
|
|
|
|
|
|
general.put("jd2_gys", new int[] { 11, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("送样原因", 9, 8);
|
|
|
|
|
|
|
|
disableEdit.add("9,8");
|
|
|
|
|
|
|
|
general.put("jd2_syyy", new int[] { 9, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("目前阶段", 12, 0);
|
|
|
|
|
|
|
|
disableEdit.add("12,0");
|
|
|
|
|
|
|
|
mqjd = new JCheckPanel(new String[] { "DV", "PV", "PR", "SR", "现场测试", "MP" });
|
|
|
|
|
|
|
|
model.setValueAt(mqjd, 12, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.setValueAt("No", top, 0);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("尺寸验证", top, 1);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",1");
|
|
|
|
|
|
|
|
model.setValueAt("检查数据(#样品号/腔体号)", top, 7);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("结果", top, 19);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",19");
|
|
|
|
|
|
|
|
model.setValueAt("规格", top + 1, 1);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",1");
|
|
|
|
|
|
|
|
model.setValueAt("公差", top + 1, 5);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",5");
|
|
|
|
|
|
|
|
for (int i = 1; i < 11; i++) {
|
|
|
|
|
|
|
|
model.setValueAt("#" + i, top + 1, i + 6);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + "," + (i + 6));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
model.setValueAt("Min", top + 1, 17);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",17");
|
|
|
|
|
|
|
|
model.setValueAt("Max", top + 1, 18);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",18");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = top + 2; i <= bottom; i++) {
|
|
|
|
|
|
|
|
model.setValueAt(i - 1 - top, i, 0);
|
|
|
|
|
|
|
|
disableEdit.add(i + ",0");
|
|
|
|
|
|
|
|
model.combine(new int[] { i }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.setValueAt("被标记为“CTQ”的尺寸非常重要", bottom + 1, 0);// 从“底部”开始
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 1 + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("SPL Picture", bottom + 2, 0);
|
|
|
|
|
|
|
|
pic.put("jd2_ypzp", new int[] { bottom + 3, 0 });
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("注塑条件", bottom + 2, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",4");
|
|
|
|
|
|
|
|
model.setValueAt("C/Time", bottom + 2, 5);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",5");
|
|
|
|
|
|
|
|
model.setValueAt("注塑", bottom + 2, 6);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",6");
|
|
|
|
|
|
|
|
model.setValueAt("冷却", bottom + 2, 7);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("包装", bottom + 2, 8);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",8");
|
|
|
|
|
|
|
|
model.setValueAt("供方自检报告", bottom + 2, 9);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",9");
|
|
|
|
|
|
|
|
model.setValueAt("供方作业指导书", bottom + 2, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",12");
|
|
|
|
|
|
|
|
model.setValueAt("供方QC工程图", bottom + 2, 15);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",15");
|
|
|
|
|
|
|
|
model.setValueAt("物料包装及标签", bottom + 2, 18);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",18");
|
|
|
|
|
|
|
|
general.put("jd2_Ctime", new int[] { bottom + 3, 5 });
|
|
|
|
|
|
|
|
general.put("jd2_zs", new int[] { bottom + 3, 6 });
|
|
|
|
|
|
|
|
general.put("jd2_lq", new int[] { bottom + 3, 7 });
|
|
|
|
|
|
|
|
general.put("jd2_baoz", new int[] { bottom + 3, 8 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfzjbg", new int[] { bottom + 3, 9 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfzyzds", new int[] { bottom + 3, 12 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfqcgct", new int[] { bottom + 3, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_wlbzjbq", new int[] { bottom + 3, 18 });
|
|
|
|
|
|
|
|
model.setValueAt("Shot/24Hr", bottom + 4, 5);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 4 + ",5");
|
|
|
|
|
|
|
|
model.setValueAt("吨", bottom + 4, 6);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 4 + ",6");
|
|
|
|
|
|
|
|
general.put("jd2_Shot24Hr", new int[] { bottom + 5, 5 });
|
|
|
|
|
|
|
|
general.put("jd2_d", new int[] { bottom + 5, 6 });
|
|
|
|
|
|
|
|
model.setValueAt("3D重量", bottom + 6, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",4");
|
|
|
|
|
|
|
|
model.setValueAt("jd2_3Dzl", bottom + 6, 5);
|
|
|
|
|
|
|
|
general.put("jd2_3Dzl", new int[] { bottom + 6, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("注塑工艺条件", bottom + 6, 7);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("IQC首检报告", bottom + 6, 9);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",9");
|
|
|
|
|
|
|
|
model.setValueAt("测试报告", bottom + 6, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",12");
|
|
|
|
|
|
|
|
model.setValueAt("材质报告", bottom + 6, 15);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",15");
|
|
|
|
|
|
|
|
model.setValueAt("模具标识", bottom + 6, 18);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",18");
|
|
|
|
|
|
|
|
pic.put("jd2_zsgytj", new int[] { bottom + 7, 7 });
|
|
|
|
|
|
|
|
pic.put("jd2_icqsjbg", new int[] { bottom + 7, 9 });
|
|
|
|
|
|
|
|
pic.put("jd2_csbg", new int[] { bottom + 7, 12 });
|
|
|
|
|
|
|
|
pic.put("jd2_czbg", new int[] { bottom + 7, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_mjbs", new int[] { bottom + 7, 18 });
|
|
|
|
|
|
|
|
model.setValueAt("实测重量", bottom + 8, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 8 + ",4");
|
|
|
|
|
|
|
|
general.put("jd2_sczl", new int[] { bottom + 8, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("IQC作业指导书", bottom + 10, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 10 + ",4");
|
|
|
|
|
|
|
|
pic.put("jd2_icqjyzds", new int[] { bottom + 11, 4 });
|
|
|
|
|
|
|
|
model.setValueAt("决定", bottom + 12, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 12 + ",12");
|
|
|
|
|
|
|
|
general.put("jd2_jued", new int[] { bottom + 12, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_qtbg", new int[] { bottom + 10, 7 });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ºÏ²¢µ¥Ôª¸ñ
|
|
|
|
// ºÏ²¢µ¥Ôª¸ñ
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 14, 15 });
|
|
|
|
initModel();
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 14, 15 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 14, 15 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 14, 15, 16 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 14, 15, 16 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9, 10, 11 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9, 10, 11 }, new int[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 10 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 10 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 11 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 11 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 12 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 12 }, new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top, 1 }, new int[] { 0 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top }, new int[] { 1, 2, 3, 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top }, new int[] { 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top, top + 1 }, new int[] { 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top + 1 }, new int[] { 1, 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top + 1 }, new int[] { 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 1 }, new int[] { 0, 1, 2, 3, 4, 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 2, 3 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5, bottom + 6, bottom + 7, bottom + 8, bottom + 9,
|
|
|
|
|
|
|
|
bottom + 10, bottom + 11, bottom + 12, bottom + 13 }, new int[] { 0, 1, 2, 3 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2, bottom + 3, bottom + 4, bottom + 5 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 4, bottom + 5 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 8, bottom + 9 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7 }, new int[] { 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 8, bottom + 9 }, new int[] { 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7, bottom + 8, bottom + 9 }, new int[] { 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10 }, new int[] { 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 11, bottom + 12, bottom + 13 }, new int[] { 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10, bottom + 11, bottom + 12, bottom + 13 }, new int[] { 7, 8, 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10, bottom + 11 }, new int[] { 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 12, bottom + 13 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 12, bottom + 13 }, new int[] { 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
table = new CTable(model) {
|
|
|
|
table = new CTable(model) {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -720,30 +465,292 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
menu.add(delR);
|
|
|
|
menu.add(delR);
|
|
|
|
delR.addActionListener(deleteRow());
|
|
|
|
delR.addActionListener(deleteRow());
|
|
|
|
|
|
|
|
|
|
|
|
// 检验单右键菜单
|
|
|
|
// 检验单右键菜单
|
|
|
|
menu2.setVisible(false);
|
|
|
|
menu2.setVisible(false);
|
|
|
|
addR2 = new JMenuItem("添加行");
|
|
|
|
addR2 = new JMenuItem("添加行");
|
|
|
|
addR2.setEnabled(false);
|
|
|
|
addR2.setEnabled(false);
|
|
|
|
menu2.add(addR2);
|
|
|
|
menu2.add(addR2);
|
|
|
|
addR2.addActionListener(addRow2());
|
|
|
|
addR2.addActionListener(addRow2());
|
|
|
|
insertR2 = new JMenuItem("插入行");
|
|
|
|
insertR2 = new JMenuItem("插入行");
|
|
|
|
insertR2.setEnabled(false);
|
|
|
|
insertR2.setEnabled(false);
|
|
|
|
menu2.add(insertR2);
|
|
|
|
menu2.add(insertR2);
|
|
|
|
insertR2.addActionListener(insertRow2());
|
|
|
|
insertR2.addActionListener(insertRow2());
|
|
|
|
delR2 = new JMenuItem("删除行");
|
|
|
|
delR2 = new JMenuItem("删除行");
|
|
|
|
delR2.setEnabled(false);
|
|
|
|
delR2.setEnabled(false);
|
|
|
|
menu2.add(delR2);
|
|
|
|
menu2.add(delR2);
|
|
|
|
delR2.addActionListener(deleteRow2());
|
|
|
|
delR2.addActionListener(deleteRow2());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
center.add("confirm", confirmScrollPanel);
|
|
|
|
|
|
|
|
center.add("examine", examineScrollPanel);
|
|
|
|
|
|
|
|
root.add(buttons, BorderLayout.NORTH);
|
|
|
|
|
|
|
|
root.add(center, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
this.add(menu);
|
|
|
|
|
|
|
|
this.add(menu2);
|
|
|
|
|
|
|
|
this.add(root, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cl.show(center, "confirm");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initModel() {
|
|
|
|
|
|
|
|
disableEdit = new ArrayList<>();// 不允许编辑
|
|
|
|
|
|
|
|
general = new HashMap<String, int[]>();// 要填写的一般属性
|
|
|
|
|
|
|
|
pic = new HashMap<String, int[]>();// 图片
|
|
|
|
|
|
|
|
model.setValueAt("样品确认单", 0, 0);
|
|
|
|
|
|
|
|
disableEdit.add("0,0");
|
|
|
|
|
|
|
|
model.setValueAt("提交", 0, 14);
|
|
|
|
|
|
|
|
disableEdit.add("0,14");
|
|
|
|
|
|
|
|
model.setValueAt("审核", 0, 16);
|
|
|
|
|
|
|
|
disableEdit.add("0,16");
|
|
|
|
|
|
|
|
model.setValueAt("批准", 0, 18);
|
|
|
|
|
|
|
|
disableEdit.add("0,18");
|
|
|
|
|
|
|
|
model.setValueAt("部门", 2, 0);
|
|
|
|
|
|
|
|
disableEdit.add("2,0");
|
|
|
|
|
|
|
|
model.setValueAt("滚筒研发", 2, 2);
|
|
|
|
|
|
|
|
disableEdit.add("2,2");
|
|
|
|
|
|
|
|
general.put("jd2_bz", new int[] { 2, 14 });
|
|
|
|
|
|
|
|
disableEdit.add("2,14");
|
|
|
|
|
|
|
|
general.put("jd2_sh", new int[] { 2, 16 });
|
|
|
|
|
|
|
|
disableEdit.add("2,16");
|
|
|
|
|
|
|
|
general.put("jd2_pz", new int[] { 2, 18 });
|
|
|
|
|
|
|
|
disableEdit.add("2,18");
|
|
|
|
|
|
|
|
model.setValueAt("创建日期", 4, 0);
|
|
|
|
|
|
|
|
disableEdit.add("4,0");
|
|
|
|
|
|
|
|
general.put("creation_date", new int[] { 4, 2 });
|
|
|
|
|
|
|
|
disableEdit.add("4,2");
|
|
|
|
|
|
|
|
model.setValueAt("创建人", 4, 5);
|
|
|
|
|
|
|
|
disableEdit.add("4,5");
|
|
|
|
|
|
|
|
general.put("owning_user", new int[] { 4, 7 });
|
|
|
|
|
|
|
|
disableEdit.add("4,7");
|
|
|
|
|
|
|
|
general.put("jd2_bzrq", new int[] { 4, 14 });
|
|
|
|
|
|
|
|
disableEdit.add("4,14");
|
|
|
|
|
|
|
|
general.put("jd2_shrq", new int[] { 4, 16 });
|
|
|
|
|
|
|
|
disableEdit.add("4,16");
|
|
|
|
|
|
|
|
general.put("jd2_pzrq", new int[] { 4, 18 });
|
|
|
|
|
|
|
|
disableEdit.add("4,18");
|
|
|
|
|
|
|
|
model.setValueAt("零件名", 6, 0);
|
|
|
|
|
|
|
|
disableEdit.add("6,0");
|
|
|
|
|
|
|
|
general.put("jd2_ljm", new int[] { 6, 2 });
|
|
|
|
|
|
|
|
general.put("jd2_ljywm", new int[] { 6, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("型号", 6, 8);
|
|
|
|
|
|
|
|
disableEdit.add("6,8");
|
|
|
|
|
|
|
|
general.put("jd2_xh", new int[] { 6, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("分类", 6, 14);
|
|
|
|
|
|
|
|
disableEdit.add("6,14");
|
|
|
|
|
|
|
|
general.put("jd2_fl", new int[] { 6, 17 });
|
|
|
|
|
|
|
|
model.setValueAt("物料编码", 7, 0);
|
|
|
|
|
|
|
|
disableEdit.add("7,0");
|
|
|
|
|
|
|
|
general.put("jd2_wlbm", new int[] { 7, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("送样数量", 7, 8);
|
|
|
|
|
|
|
|
disableEdit.add("7,8");
|
|
|
|
|
|
|
|
yssl = new JRadioPanel(new String[] { "3", "5", "10", "30" });
|
|
|
|
|
|
|
|
model.setValueAt(yssl, 7, 10);
|
|
|
|
|
|
|
|
model.setValueAt("状态", 7, 14);
|
|
|
|
|
|
|
|
disableEdit.add("7,14");
|
|
|
|
|
|
|
|
general.put("jd2_zt", new int[] { 7, 17 });
|
|
|
|
|
|
|
|
model.setValueAt("部品等级", 8, 0);
|
|
|
|
|
|
|
|
disableEdit.add("8,0");
|
|
|
|
|
|
|
|
general.put("jd2_bpdj", new int[] { 8, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("参考物料", 8, 8);
|
|
|
|
|
|
|
|
disableEdit.add("8,8");
|
|
|
|
|
|
|
|
model.setValueAt("jd2_ckwl", 8, 10);
|
|
|
|
|
|
|
|
general.put("jd2_ckwl", new int[] { 8, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("图号", 9, 0);
|
|
|
|
|
|
|
|
disableEdit.add("9,0");
|
|
|
|
|
|
|
|
general.put("jd2_th", new int[] { 9, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("规格", 10, 0);
|
|
|
|
|
|
|
|
disableEdit.add("10,0");
|
|
|
|
|
|
|
|
general.put("jd2_gg", new int[] { 10, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("供应商", 11, 0);
|
|
|
|
|
|
|
|
disableEdit.add("11,0");
|
|
|
|
|
|
|
|
general.put("jd2_gys", new int[] { 11, 2 });
|
|
|
|
|
|
|
|
model.setValueAt("送样原因", 9, 8);
|
|
|
|
|
|
|
|
disableEdit.add("9,8");
|
|
|
|
|
|
|
|
general.put("jd2_syyy", new int[] { 9, 10 });
|
|
|
|
|
|
|
|
model.setValueAt("目前阶段", 12, 0);
|
|
|
|
|
|
|
|
disableEdit.add("12,0");
|
|
|
|
|
|
|
|
mqjd = new JCheckPanel(new String[] { "DV", "PV", "PR", "SR", "现场测试", "MP" });
|
|
|
|
|
|
|
|
model.setValueAt(mqjd, 12, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.setValueAt("No", top, 0);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("尺寸验证", top, 1);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",1");
|
|
|
|
|
|
|
|
model.setValueAt("检查数据(#样品号/腔体号)", top, 7);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("结果", top, 19);
|
|
|
|
|
|
|
|
disableEdit.add(top + ",19");
|
|
|
|
|
|
|
|
model.setValueAt("规格", top + 1, 1);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",1");
|
|
|
|
|
|
|
|
model.setValueAt("公差", top + 1, 5);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",5");
|
|
|
|
|
|
|
|
for (int i = 1; i < 11; i++) {
|
|
|
|
|
|
|
|
model.setValueAt("#" + i, top + 1, i + 6);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + "," + (i + 6));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
model.setValueAt("Min", top + 1, 17);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",17");
|
|
|
|
|
|
|
|
model.setValueAt("Max", top + 1, 18);
|
|
|
|
|
|
|
|
disableEdit.add(top + 1 + ",18");
|
|
|
|
|
|
|
|
|
|
|
|
center.add("confirm", confirmScrollPanel);
|
|
|
|
for (int i = top + 2; i <= bottom; i++) {
|
|
|
|
center.add("examine", examineScrollPanel);
|
|
|
|
model.setValueAt(i - 1 - top, i, 0);
|
|
|
|
root.add(buttons, BorderLayout.NORTH);
|
|
|
|
disableEdit.add(i + ",0");
|
|
|
|
root.add(center, BorderLayout.CENTER);
|
|
|
|
}
|
|
|
|
this.add(menu);
|
|
|
|
|
|
|
|
this.add(menu2);
|
|
|
|
|
|
|
|
this.add(root, BorderLayout.CENTER);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cl.show(center, "confirm");
|
|
|
|
model.setValueAt("被标记为“CTQ”的尺寸非常重要", bottom + 1, 0);// 从“底部”开始
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 1 + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("SPL Picture", bottom + 2, 0);
|
|
|
|
|
|
|
|
pic.put("jd2_ypzp", new int[] { bottom + 3, 0 });
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",0");
|
|
|
|
|
|
|
|
model.setValueAt("注塑条件", bottom + 2, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",4");
|
|
|
|
|
|
|
|
model.setValueAt("C/Time", bottom + 2, 5);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",5");
|
|
|
|
|
|
|
|
model.setValueAt("注塑", bottom + 2, 6);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",6");
|
|
|
|
|
|
|
|
model.setValueAt("冷却", bottom + 2, 7);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("包装", bottom + 2, 8);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",8");
|
|
|
|
|
|
|
|
model.setValueAt("供方自检报告", bottom + 2, 9);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",9");
|
|
|
|
|
|
|
|
model.setValueAt("供方作业指导书", bottom + 2, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",12");
|
|
|
|
|
|
|
|
model.setValueAt("供方QC工程图", bottom + 2, 15);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",15");
|
|
|
|
|
|
|
|
model.setValueAt("物料包装及标签", bottom + 2, 18);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 2 + ",18");
|
|
|
|
|
|
|
|
general.put("jd2_Ctime", new int[] { bottom + 3, 5 });
|
|
|
|
|
|
|
|
general.put("jd2_zs", new int[] { bottom + 3, 6 });
|
|
|
|
|
|
|
|
general.put("jd2_lq", new int[] { bottom + 3, 7 });
|
|
|
|
|
|
|
|
general.put("jd2_baoz", new int[] { bottom + 3, 8 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfzjbg", new int[] { bottom + 3, 9 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfzyzds", new int[] { bottom + 3, 12 });
|
|
|
|
|
|
|
|
pic.put("jd2_gfqcgct", new int[] { bottom + 3, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_wlbzjbq", new int[] { bottom + 3, 18 });
|
|
|
|
|
|
|
|
model.setValueAt("Shot/24Hr", bottom + 4, 5);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 4 + ",5");
|
|
|
|
|
|
|
|
model.setValueAt("吨", bottom + 4, 6);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 4 + ",6");
|
|
|
|
|
|
|
|
general.put("jd2_Shot24Hr", new int[] { bottom + 5, 5 });
|
|
|
|
|
|
|
|
general.put("jd2_d", new int[] { bottom + 5, 6 });
|
|
|
|
|
|
|
|
model.setValueAt("3D重量", bottom + 6, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",4");
|
|
|
|
|
|
|
|
model.setValueAt("jd2_3Dzl", bottom + 6, 5);
|
|
|
|
|
|
|
|
general.put("jd2_3Dzl", new int[] { bottom + 6, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("注塑工艺条件", bottom + 6, 7);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",7");
|
|
|
|
|
|
|
|
model.setValueAt("IQC首检报告", bottom + 6, 9);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",9");
|
|
|
|
|
|
|
|
model.setValueAt("测试报告", bottom + 6, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",12");
|
|
|
|
|
|
|
|
model.setValueAt("材质报告", bottom + 6, 15);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",15");
|
|
|
|
|
|
|
|
model.setValueAt("模具标识", bottom + 6, 18);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 6 + ",18");
|
|
|
|
|
|
|
|
pic.put("jd2_zsgytj", new int[] { bottom + 7, 7 });
|
|
|
|
|
|
|
|
pic.put("jd2_icqsjbg", new int[] { bottom + 7, 9 });
|
|
|
|
|
|
|
|
pic.put("jd2_csbg", new int[] { bottom + 7, 12 });
|
|
|
|
|
|
|
|
pic.put("jd2_czbg", new int[] { bottom + 7, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_mjbs", new int[] { bottom + 7, 18 });
|
|
|
|
|
|
|
|
model.setValueAt("实测重量", bottom + 8, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 8 + ",4");
|
|
|
|
|
|
|
|
general.put("jd2_sczl", new int[] { bottom + 8, 5 });
|
|
|
|
|
|
|
|
model.setValueAt("IQC作业指导书", bottom + 10, 4);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 10 + ",4");
|
|
|
|
|
|
|
|
pic.put("jd2_icqjyzds", new int[] { bottom + 11, 4 });
|
|
|
|
|
|
|
|
model.setValueAt("决定", bottom + 12, 12);
|
|
|
|
|
|
|
|
disableEdit.add(bottom + 12 + ",12");
|
|
|
|
|
|
|
|
general.put("jd2_jued", new int[] { bottom + 12, 15 });
|
|
|
|
|
|
|
|
pic.put("jd2_qtbg", new int[] { bottom + 10, 7 });
|
|
|
|
|
|
|
|
for (int i = top + 2; i <= bottom; i++) {
|
|
|
|
|
|
|
|
model.combine(new int[] { i }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 14, 15 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 0, 1 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 14, 15 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 2, 3 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 7, 8, 9, 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 14, 15 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 4, 5 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 14, 15, 16 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 6 }, new int[] { 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 10, 11, 12, 13 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 14, 15, 16 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 7 }, new int[] { 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 8 }, new int[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9, 10, 11 }, new int[] { 8, 9 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 9, 10, 11 }, new int[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 10 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 10 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 11 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 11 }, new int[] { 2, 3, 4, 5, 6, 7 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 12 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { 12 }, new int[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top, 1 }, new int[] { 0 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top }, new int[] { 1, 2, 3, 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top }, new int[] { 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top, top + 1 }, new int[] { 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top + 1 }, new int[] { 1, 2, 3, 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { top + 1 }, new int[] { 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 1 }, new int[] { 0, 1, 2, 3, 4, 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 0, 1 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 2, 3 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5, bottom + 6, bottom + 7, bottom + 8, bottom + 9,
|
|
|
|
|
|
|
|
bottom + 10, bottom + 11, bottom + 12, bottom + 13 }, new int[] { 0, 1, 2, 3 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2, bottom + 3, bottom + 4, bottom + 5 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 2 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 4, bottom + 5 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 3, bottom + 4, bottom + 5 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 8, bottom + 9 }, new int[] { 4 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7 }, new int[] { 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 8, bottom + 9 }, new int[] { 5 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6, bottom + 7, bottom + 8, bottom + 9 }, new int[] { 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 6 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 7, 8 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 15, 16, 17 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 7, bottom + 8, bottom + 9 }, new int[] { 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10 }, new int[] { 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 11, bottom + 12, bottom + 13 }, new int[] { 4, 5, 6 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10, bottom + 11, bottom + 12, bottom + 13 }, new int[] { 7, 8, 9, 10, 11 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 10, bottom + 11 }, new int[] { 12, 13, 14, 15, 16, 17, 18, 19 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 12, bottom + 13 }, new int[] { 12, 13, 14 });
|
|
|
|
|
|
|
|
model.combine(new int[] { bottom + 12, bottom + 13 }, new int[] { 15, 16, 17, 18, 19 });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -925,7 +932,7 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
public void mouseClicked(MouseEvent e) {
|
|
|
|
public void mouseClicked(MouseEvent e) {
|
|
|
|
if (e.getButton() == MouseEvent.BUTTON3 && form.isCheckedOut() && table.getSelectedRow() != -1) {
|
|
|
|
if (e.getButton() == MouseEvent.BUTTON3 && form.isCheckedOut() && table.getSelectedRow() != -1) {
|
|
|
|
int row = table.getSelectedRow();
|
|
|
|
int row = table.getSelectedRow();
|
|
|
|
boolean flag = (row >= top && row <= bottom);
|
|
|
|
boolean flag = (row >= top + 2 && row <= bottom);
|
|
|
|
addR.setEnabled(flag);
|
|
|
|
addR.setEnabled(flag);
|
|
|
|
insertR.setEnabled(flag);
|
|
|
|
insertR.setEnabled(flag);
|
|
|
|
delR.setEnabled(flag);
|
|
|
|
delR.setEnabled(flag);
|
|
|
@ -1044,8 +1051,13 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
int num = Integer.parseInt(model.getValueAt(bottom, 0).toString());
|
|
|
|
int num = Integer.parseInt(model.getValueAt(bottom, 0).toString());
|
|
|
|
model.insertRow(++bottom);
|
|
|
|
model.insertRow(++bottom);
|
|
|
|
model.setValueAt(num + 1, bottom, 0);
|
|
|
|
// model.setValueAt(num + 1, bottom, 0);
|
|
|
|
model.combine(new int[] { bottom }, new int[] { 2, 3, 4 });
|
|
|
|
// model.combine(new int[] { bottom }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println(bottom);
|
|
|
|
|
|
|
|
initModel();
|
|
|
|
|
|
|
|
table.revalidate();
|
|
|
|
|
|
|
|
table.repaint();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -1081,6 +1093,11 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
model.setValueAt(num + i - row, i, 0);
|
|
|
|
model.setValueAt(num + i - row, i, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
model.combine(new int[] { row }, new int[] { 2, 3, 4 });
|
|
|
|
model.combine(new int[] { row }, new int[] { 2, 3, 4 });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println(bottom);
|
|
|
|
|
|
|
|
initModel();
|
|
|
|
|
|
|
|
table.revalidate();
|
|
|
|
|
|
|
|
table.repaint();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return actionListener;
|
|
|
|
return actionListener;
|
|
|
@ -1120,6 +1137,11 @@ public class SampleConfirmationForm extends AbstractRendering {
|
|
|
|
model.setValueAt(num + i - row, i, 0);
|
|
|
|
model.setValueAt(num + i - row, i, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println(bottom);
|
|
|
|
|
|
|
|
initModel();
|
|
|
|
|
|
|
|
table.revalidate();
|
|
|
|
|
|
|
|
table.repaint();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
return actionListener;
|
|
|
|
return actionListener;
|
|
|
|