|
@@ -401,9 +401,9 @@ public class MaterielFrame extends JFrame {
|
|
|
// int typei = AptivApp.materielService.isExistByParam("type", typeVal, 2, 0);
|
|
|
if (dpni == 1) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "DPN已存在,请重新填写DPN", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
- } else if (dpni == 2) {
|
|
|
+ } /*else if (dpni == 2) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "DPN的位数不等于8位", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
- } else if (cpni == 1) {
|
|
|
+ }*/ else if (cpni == 1) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "CPN已存在,请重新填写CPN", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
} else if (cpni == 2) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "CPN的位数不等于10位", "提示", JOptionPane.ERROR_MESSAGE);
|
|
@@ -522,9 +522,9 @@ public class MaterielFrame extends JFrame {
|
|
|
// int typei = AptivApp.materielService.isExistByParam("type", typeVal, 2, materiel.getId());
|
|
|
if (dpni == 1) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "DPN已存在,请重新填写DPN", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
- } else if (dpni == 2) {
|
|
|
+ } /*else if (dpni == 2) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "DPN的位数不等于8位", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
- } else if (cpni == 1) {
|
|
|
+ }*/ else if (cpni == 1) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "CPN已存在,请重新填写CPN", "提示", JOptionPane.ERROR_MESSAGE);
|
|
|
} else if (cpni == 2) {
|
|
|
JOptionPane.showMessageDialog(MaterielFrame.this, "CPN的位数不等于10位", "提示", JOptionPane.ERROR_MESSAGE);
|