|
@@ -85,9 +85,9 @@ public class salogis extends PaoCust {
|
|
|
if (fphonenumber.length > 1) {
|
|
if (fphonenumber.length > 1) {
|
|
|
throw new P2AppException("", "不可同时添加两个不同联系方式的发货单");
|
|
throw new P2AppException("", "不可同时添加两个不同联系方式的发货单");
|
|
|
}
|
|
}
|
|
|
- if (fsignbacknum.length > 1) {
|
|
|
|
|
- throw new P2AppException("", "不可同时添加两个回签单的发货单");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (fsignbacknum.length > 1) {
|
|
|
|
|
+// throw new P2AppException("", "不可同时添加两个回签单的发货单");
|
|
|
|
|
+// }
|
|
|
if (!salogisdetailSet.isEmpty()) {
|
|
if (!salogisdetailSet.isEmpty()) {
|
|
|
DBConnect dbConnect = new DBConnect();
|
|
DBConnect dbConnect = new DBConnect();
|
|
|
Rows rows = dbConnect.runSqlQuery("select t2.faddress,t2.fcontact,t2.fphonenumber,t2.fsignbacknum from SALOGISDETAIL t1 inner join sainvoice t2 on t1.fsourceid=t2.sainvoiceid and t1.FSOURCEOBJECT='sainvoice'and t1.fparentid=" + getUniqueIDValue());
|
|
Rows rows = dbConnect.runSqlQuery("select t2.faddress,t2.fcontact,t2.fphonenumber,t2.fsignbacknum from SALOGISDETAIL t1 inner join sainvoice t2 on t1.fsourceid=t2.sainvoiceid and t1.FSOURCEOBJECT='sainvoice'and t1.fparentid=" + getUniqueIDValue());
|
|
@@ -101,9 +101,9 @@ public class salogis extends PaoCust {
|
|
|
if (fphonenumber.length == 1 && !fphonenumber[0].equals(row.getString("fphonenumber"))) {
|
|
if (fphonenumber.length == 1 && !fphonenumber[0].equals(row.getString("fphonenumber"))) {
|
|
|
throw new P2AppException("", "不可同时添加两个不同联系方式的发货单");
|
|
throw new P2AppException("", "不可同时添加两个不同联系方式的发货单");
|
|
|
}
|
|
}
|
|
|
- if (fsignbacknum.length == 1 && !fsignbacknum[0].equals(row.getString("fsignbacknum"))) {
|
|
|
|
|
- throw new P2AppException("", "不可同时添加两个回签单的发货单");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (fsignbacknum.length == 1 && !fsignbacknum[0].equals(row.getString("fsignbacknum"))) {
|
|
|
|
|
+// throw new P2AppException("", "不可同时添加两个回签单的发货单");
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
BatchAdd(paoset, new String[]{"sainvoiceid", "$SAINVOICE"}, salogisdetailSet, new String[]{"fsourceid", "fsourceobject"}, true);
|
|
BatchAdd(paoset, new String[]{"sainvoiceid", "$SAINVOICE"}, salogisdetailSet, new String[]{"fsourceid", "fsourceobject"}, true);
|