| | |
| | | CPICMO cpicmo = select.get(0); |
| | | boolean complete = false; |
| | | if (cpicmo.getFQty() > 0) { |
| | | if (cpicmo.getFAuxCommitQty() == cpicmo.getFQty()) { |
| | | if (Double.doubleToLongBits(cpicmo.getFAuxCommitQty()) == Double.doubleToLongBits(cpicmo.getFQty())) { |
| | | complete = true; |
| | | } |
| | | } else { |
| | | if (cpicmo.getFAuxCommitQty() == cpicmo.getFAuxQty()) { |
| | | if (Double.doubleToLongBits(cpicmo.getFAuxCommitQty()) == Double.doubleToLongBits(cpicmo.getFAuxQty())) { |
| | | complete = true; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | public boolean updateFnumber(Integer itemId, String FNumber){ |
| | | String sql = "update InStockbillEntry set Fnumber = ''{0}'' where FItemID = {1,number,#}"; |
| | | sql = MessageFormat.format(sql, FNumber, itemId); |
| | |
| | | return erpSqlServer.update(sql) > 0; |
| | | } |
| | | |
| | | public List<CPICMO> queryErpCPICMO(String fbillNo, String fsourceBillNo) { |
| | | String sql = "select * from CPICMO"; |
| | | if (!Cools.isEmpty(fbillNo) && Cools.isEmpty(fsourceBillNo)) { |
| | | sql = "select * from CPICMO where FBillNo = ''{0}''"; |
| | | sql = MessageFormat.format(sql, fbillNo); |
| | | } else if (Cools.isEmpty(fbillNo) && !Cools.isEmpty(fsourceBillNo)) { |
| | | sql = "select * from CPICMO where FSourceBillNo = ''{0}''"; |
| | | sql = MessageFormat.format(sql, fsourceBillNo); |
| | | } else if (!Cools.isEmpty(fbillNo) && !Cools.isEmpty(fsourceBillNo)) { |
| | | sql = "select * from CPICMO where FBillNo = ''{0}'' and FSourceBillNo = ''{1}''"; |
| | | sql = MessageFormat.format(sql, fbillNo, fsourceBillNo); |
| | | } |
| | | return erpSqlServer.select(sql, CPICMO.class); |
| | | } |
| | | } |