PDA拣货,物料默认库区,盘点库区调整,整理默认库区,立库转库遗留数据、长宽高调整,sap接口调整

main
userName 2025-03-25 23:09:58 +08:00
parent 1c34877593
commit 29e8a06be5
25 changed files with 220 additions and 120 deletions

View File

@ -134,6 +134,9 @@ public class Item extends Entity {
private boolean beExtend2=false;//扩展2 private boolean beExtend2=false;//扩展2
private boolean beUnpacking=false;//是否最小包装 private boolean beUnpacking=false;//是否最小包装
private boolean beWholeLine=false;//是否整行发料,不满足整行需要备注。
private Double multipleOrder=0d;// private Double multipleOrder=0d;//
private int codePat=0 ;// private int codePat=0 ;//

View File

@ -34,7 +34,7 @@ public class WarehouseArea extends Entity {
/**备注*/ /**备注*/
private String gdm;//固定地标点 private String gdm;//固定地标点
private Long decLocId;//拣货货架ID private Long decLocId;//拣货货架ID
/** 是否扫描容器 */ /** 是否料号交单 */
private boolean beStock;// private boolean beStock;//
/** 是否合单 */ /** 是否合单 */
private boolean beBill;// private boolean beBill;//

View File

@ -45,7 +45,7 @@ public class TaskHeBinView extends Entity {
private double quantity; private double quantity;
private int levels=0;//库区是否合单任务 private int levels=0;//库区是否合单任务
/** 是否扫描容器 */ /** 是否料号交单 */
private boolean beStock;// private boolean beStock;//
/** 是否合单 */ /** 是否合单 */
private boolean beBill;// private boolean beBill;//

View File

@ -1725,6 +1725,7 @@ public class DefaultAgvTaskManager extends DefaultBaseManager implements AgvTask
flag = interfaceReqManager.agvASNOutbound("20501", agvTask.getContainerCode(), agvTask.getRobotJobId(), agvTask.getTargetAreaCode()); flag = interfaceReqManager.agvASNOutbound("20501", agvTask.getContainerCode(), agvTask.getRobotJobId(), agvTask.getTargetAreaCode());
if (flag) { if (flag) {
agvTask.setStatus(STATUS.RECEIVED); agvTask.setStatus(STATUS.RECEIVED);
agvTask.setArrivalTime(new Date());
commonDao.store(agvTask); commonDao.store(agvTask);
} }
return flag; return flag;

View File

@ -1111,7 +1111,7 @@ public class DefaultImportFileManager extends DefaultBaseManager implements Impo
item.setGoodType(bs); item.setGoodType(bs);
*/ */
if(zoneName!=null&&zoneName.length()>0) { if(zoneName!=null&&zoneName.length()>0) {
List<WarehouseArea> zoneList= commonDao.findByQuery(" from WarehouseArea w where w.name='"+zoneName+"' and w.disabled=false "); List<WarehouseArea> zoneList= commonDao.findByQuery(" from WarehouseArea w where w.name='"+zoneName.trim()+"' and w.disabled=false ");
if(zoneList.size()>0) { if(zoneList.size()>0) {
item.setDefaultWarehouseArea(zoneList.get(0)); item.setDefaultWarehouseArea(zoneList.get(0));
} }

View File

@ -179,7 +179,7 @@ public interface CountPlanManager extends BaseManager {
void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10, void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10,
boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17,boolean w18,boolean w19,boolean w20,boolean w21,boolean w22, boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17,boolean w18,boolean w19,boolean w20,boolean w21,boolean w22,
boolean w601,boolean w602,boolean w603,boolean w604,boolean w605,double w31,double w32,double w33,double w34,double w35,double w36,double w37 boolean w601,boolean w602,boolean w603,boolean w604,boolean w605,double w31,double w32,double w33,double w34,double w35,double w36,double w37
,double w38,double w39,double w40,double w41); ,double w38,double w39,double w40,double w41,double w42,double w43);
@Transactional @Transactional
void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10, void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10,
boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17,boolean w18,boolean w19,boolean w20,boolean w21,boolean w22); boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17,boolean w18,boolean w19,boolean w20,boolean w21,boolean w22);

View File

@ -1597,7 +1597,7 @@ public class DefaultCountPlanManager extends DefaultBaseManager implements
boolean w18,boolean w19,boolean w20,boolean w21,boolean w22) { boolean w18,boolean w19,boolean w20,boolean w21,boolean w22) {
AGVworke( countPlanId, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, AGVworke( countPlanId, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10,
w11, w12, w13, w14, w15, w16, w17, w11, w12, w13, w14, w15, w16, w17,
w18, w19, w20, w21,w22,false,false,false,false,false,0,0,0,0,0,0,0,0,0,0,0); w18, w19, w20, w21,w22,false,false,false,false,false,0,0,0,0,0,0,0,0,0,0,0,0,0);
} }
public List<CountRecord> quserCountPlanTask(long zone_id,long countPlanId) { public List<CountRecord> quserCountPlanTask(long zone_id,long countPlanId) {
List<CountRecord> ddq=commonDao.findByQuery(" from CountRecord c where c.location.zone.id="+zone_id List<CountRecord> ddq=commonDao.findByQuery(" from CountRecord c where c.location.zone.id="+zone_id
@ -1608,7 +1608,8 @@ public class DefaultCountPlanManager extends DefaultBaseManager implements
public void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10, public void AGVworke(Long countPlanId,boolean w1,boolean w2,boolean w3,boolean w4,boolean w5,boolean w6,boolean w7,boolean w8,boolean w9,boolean w10,
boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17, boolean w11,boolean w12,boolean w13,boolean w14,boolean w15,boolean w16,boolean w17,
boolean w18,boolean w19,boolean w20,boolean w21,boolean w22,boolean w601,boolean w602,boolean w603,boolean w604,boolean w605, boolean w18,boolean w19,boolean w20,boolean w21,boolean w22,boolean w601,boolean w602,boolean w603,boolean w604,boolean w605,
double w31,double w32,double w33,double w34,double w35,double w36,double w37,double w38,double w39,double w40,double w41) { double w31,double w32,double w33,double w34,double w35,double w36,double w37,double w38,
double w39,double w40,double w41,double w42,double w43) {
CountPlan countPlan=commonDao.load(CountPlan.class, countPlanId); CountPlan countPlan=commonDao.load(CountPlan.class, countPlanId);
if(countPlan!=null) { if(countPlan!=null) {
//料箱区 //料箱区
@ -1816,6 +1817,14 @@ public class DefaultCountPlanManager extends DefaultBaseManager implements
if(wwc1.size()>0&&w41==0) { if(wwc1.size()>0&&w41==0) {
throw new BusinessException("1号万纬外仓有盘点任务必须勾选"); throw new BusinessException("1号万纬外仓有盘点任务必须勾选");
} }
List<CountRecord> qd3=quserCountPlanTask(1819L, countPlanId);//7#3楼地堆区
if(qd3.size()>0&&w42==0) {
throw new BusinessException("7#3楼地堆区有盘点任务必须勾选");
}
List<CountRecord> qd4=quserCountPlanTask(1822L, countPlanId);//7#4楼地堆区
if(qd4.size()>0&&w43==0) {
throw new BusinessException("7#4楼地堆区有盘点任务必须勾选");
}
int l=0;//料箱区 int l=0;//料箱区
for(Stock stock:sts) { for(Stock stock:sts) {
//工作个数 //工作个数
@ -1980,6 +1989,14 @@ public class DefaultCountPlanManager extends DefaultBaseManager implements
//1号万纬外仓 //1号万纬外仓
distributeCountPlan(w41, wwc1); distributeCountPlan(w41, wwc1);
} }
if(w42>0) {
//1号万纬外仓
distributeCountPlan(w42, qd3);
}
if(w43>0) {
//1号万纬外仓
distributeCountPlan(w43, qd4);
}
List<CountRecord> countRecords=commonDao.findByQuery(" from CountRecord c where c.countCode is null " List<CountRecord> countRecords=commonDao.findByQuery(" from CountRecord c where c.countCode is null "
+" and c.countPlan.id="+countPlanId+" order by c.location.zone.code,c.location.code"); +" and c.countPlan.id="+countPlanId+" order by c.location.zone.code,c.location.code");
if(countRecords.size()==0) { if(countRecords.size()==0) {
@ -1990,7 +2007,7 @@ public class DefaultCountPlanManager extends DefaultBaseManager implements
//无指定库区的料号一个任务号 //无指定库区的料号一个任务号
String zondName="";//库区 String zondName="";//库区
String billcode="";//盘点单号 String billcode="";//盘点单号
for(CountRecord red:hxpq) { for(CountRecord red:countRecords) {
Location loc=commonDao.load(Location.class, red.getLocation().getId()); Location loc=commonDao.load(Location.class, red.getLocation().getId());
WarehouseArea zone=commonDao.load(WarehouseArea.class, loc.getZone().getId()); WarehouseArea zone=commonDao.load(WarehouseArea.class, loc.getZone().getId());
if(zondName.equals("")) { if(zondName.equals("")) {

View File

@ -519,7 +519,11 @@ public class DefaultInterfaceReqManager extends DefaultBaseManager implements In
receivedRecord.getReceivedQuantity(), null, srcInv == null ? "" : srcInv.getStatus(), receivedRecord.getReceivedQuantity(), null, srcInv == null ? "" : srcInv.getStatus(),
srcInv == null ? 0L : srcInv.getId(), null, asn.getBillType(), userId1, receivedRecord.getBarCode(), srcInv == null ? 0L : srcInv.getId(), null, asn.getBillType(), userId1, receivedRecord.getBarCode(),
null,asn.getSourceType()); null,asn.getSourceType());
if(item!=null&&receivedRecord.getLocation()!=null) {
Location location=commonDao.load(Location.class, receivedRecord.getLocation().getId());
item.setWarehouseArea(location.getZone());
commonDao.store(item);
}
inventoryManager.createReceivingInventory( receivedRecord,receivedRecord.getLocation()); inventoryManager.createReceivingInventory( receivedRecord,receivedRecord.getLocation());
} }

View File

@ -1811,7 +1811,7 @@ public class DefaultInterfaceRespManager extends DefaultBaseManager implements I
ASNDetail asnDetail=EntityFactory.getEntity(ASNDetail.class); ASNDetail asnDetail=EntityFactory.getEntity(ASNDetail.class);
String adhql=" from ASNDetail ad where ad.lineNo='"+lineNo+"' and ad.asn.id="+asndb.getId(); String adhql=" from ASNDetail ad where ad.lineNo='"+lineNo+"' and ad.asn.id="+asndb.getId();
if(strBill2!=null&&!strBill2.equals("")) { if(strBill2!=null&&!strBill2.equals("")) {
adhql+=" and ad.strBill2='"+strBill2+"'"; adhql+=" and ad.strBill2='"+strBill2.trim()+"'";
} }
List<ASNDetail> asnDetails = commonDao.findByQuery(adhql); List<ASNDetail> asnDetails = commonDao.findByQuery(adhql);
// List<ASNDetail> asnDetails = commonDao.findByQuery(" from ASNDetail ad where ad.lineNo=:lineNo and ad.asn.id=:id", // List<ASNDetail> asnDetails = commonDao.findByQuery(" from ASNDetail ad where ad.lineNo=:lineNo and ad.asn.id=:id",
@ -1989,7 +1989,7 @@ public class DefaultInterfaceRespManager extends DefaultBaseManager implements I
} }
asnDetail.setExpectedQuantity(expectedQuantity); asnDetail.setExpectedQuantity(expectedQuantity);
asnDetail.setItem(item); asnDetail.setItem(item);
asnDetail.setStrBill2(strBill2); asnDetail.setStrBill2(strBill2.trim());
asnDetail.setStrBill1(strBill1); asnDetail.setStrBill1(strBill1);
asnDetail.setStrBill3(strBill3); asnDetail.setStrBill3(strBill3);
asnDetail.setStrBill4(strBill4); asnDetail.setStrBill4(strBill4);
@ -2116,7 +2116,6 @@ public class DefaultInterfaceRespManager extends DefaultBaseManager implements I
} }
if(errorcode.equals("200")&&hs.equals("1")) { if(errorcode.equals("200")&&hs.equals("1")) {
for(int j=0;j<jsonArray.size();j++){ for(int j=0;j<jsonArray.size();j++){
String billType="QPUTASN"; String billType="QPUTASN";
List<BillType> billTypes=commonDao.findByQuery(" from BillType bt where bt.code='"+billType+"'"); List<BillType> billTypes=commonDao.findByQuery(" from BillType bt where bt.code='"+billType+"'");
@ -2133,21 +2132,21 @@ public class DefaultInterfaceRespManager extends DefaultBaseManager implements I
String strBill2=asn.has("SERNR") ? asn.getString("SERNR") : "";//序列号 String strBill2=asn.has("SERNR") ? asn.getString("SERNR") : "";//序列号
String strBill7=asn.has("RSNUM") ? asn.getString("RSNUM") : "";//预留号 String strBill7=asn.has("RSNUM") ? asn.getString("RSNUM") : "";//预留号
String strBill8=asn.has("RSPOS") ? asn.getString("RSPOS") : "";//预留项次号 String strBill8=asn.has("RSPOS") ? asn.getString("RSPOS") : "";//预留项次号
String propC3=asn.has("SBBST") ? asn.getString("SBBST") : "";//特殊标记 // String propC3=asn.has("SBBST") ? asn.getString("SBBST") : "";//特殊标记
String propC3=asn.has("PROPC3") ? asn.getString("PROPC3") : "";//特殊标记入库
String strBill3=asn.has("ZXSQ") ? asn.getString("ZXSQ") : "";//是否线上质检 String strBill3=asn.has("ZXSQ") ? asn.getString("ZXSQ") : "";//是否线上质检
String sccj=asn.has("ZXXQ") ? asn.getString("ZXXQ") : "";//是否线下质检 String sccj=asn.has("ZXXQ") ? asn.getString("ZXXQ") : "";//是否线下质检
String ZGDI=asn.has("ZGDI") ? asn.getString("ZGDI") : "";//是否发货 String ZGDI=asn.has("ZGDI") ? asn.getString("ZGDI") : "";//是否发货
String MEINS=asn.has("MEINS") ? asn.getString("MEINS") : "";//单位 String MEINS=asn.has("MEINS") ? asn.getString("MEINS") : "";//单位
String ZOUTWMS=asn.has("ZOUTWMS") ? asn.getString("ZOUTWMS") : "";//是否出WMS仓 String ZOUTWMS=asn.has("ZOUTWMS") ? asn.getString("ZOUTWMS") : "";//是否出WMS仓
String strBill4=asn.has("strBill4") ? asn.getString("strBill4") : "";//供应商号 String propC5=asn.has("STRBILL4") ? asn.getString("STRBILL4") : "";//供应商号
String strBill5=asn.has("strBill5") ? asn.getString("strBill5") : "";//需求人 String strBill5=asn.has("strBill5") ? asn.getString("strBill5") : "";//需求人
String sourceType=asn.has("BWART") ? asn.getString("BWART") : "";//移动类型 String sourceType=asn.has("BWART") ? asn.getString("BWART") : "";//移动类型
String strBill6=asn.has("strBill6") ? asn.getString("strBill6") : "";//删除标记 String strBill6=asn.has("strBill6") ? asn.getString("strBill6") : "";//删除标记
String propC9=asn.has("WERKS") ? asn.getString("WERKS") : "";//接受工厂 String propC9=asn.has("WERKS") ? asn.getString("WERKS") : "";//接受工厂
String propC2=asn.has("ZWERKST") ? asn.getString("ZWERKST") : "";//发出库存地 String propC2=asn.has("ZWERKST") ? asn.getString("ZWERKST") : "";//发出库存地
// String propC5=asn.has("ZSONUM") ? asn.getString("ZSONUM") : "";//特殊库存业务编号 // String propC5=asn.has("ZSONUM") ? asn.getString("ZSONUM") : "";//特殊库存业务编号
String propC5=asn.has("LIFNR") ? asn.getString("LIFNR") : "";//特殊库存业务编号 String strBill4=asn.has("LIFNR") ? asn.getString("LIFNR") : "";//特殊库存业务编号发货
String DATUM=asn.has("DATUM") ? asn.getString("DATUM") : "2021-12-31"; //日期 年-月-日 String DATUM=asn.has("DATUM") ? asn.getString("DATUM") : "2021-12-31"; //日期 年-月-日
String UZEIT=asn.has("UZEIT") ? asn.getString("UZEIT") : "00:00:00"; //时间 时:分:秒 String UZEIT=asn.has("UZEIT") ? asn.getString("UZEIT") : "00:00:00"; //时间 时:分:秒

View File

@ -181,11 +181,13 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
+ "item.ISBOM," + "item.ISBOM,"
+ "(case when item.default_Warehouse_Area_ID is not NULL then item.default_Warehouse_Area_ID ELSE z.id END) as z_id," + "(case when item.default_Warehouse_Area_ID is not NULL then item.default_Warehouse_Area_ID ELSE z.id END) as z_id,"
+ "item.volume,item.BE_MARK_WEIGHT as beMarkWeight,item.FEE_TYPE," + "item.volume,item.BE_MARK_WEIGHT as beMarkWeight,item.FEE_TYPE,"
+ " item.be_Extend1,item.be_Extend2,asn.BILL_TYPE_ID,ad.strBill11,ad.bf_qty ,z.name as z_name " + " item.be_Extend1,item.be_Extend2,asn.BILL_TYPE_ID,ad.strBill11,ad.bf_qty ,z.name as z_name,"
+ "z1.name as z1_name "
+ " from ASN_DETAIL ad " + " from ASN_DETAIL ad "
+ " left join ASN asn on asn.id=ad.ASN_ID " + " left join ASN asn on asn.id=ad.ASN_ID "
+ " left join ITEM item on item.id=ad.ITEM_ID " + " left join ITEM item on item.id=ad.ITEM_ID "
+ " left join zone z on z.id=item.warehouse_Area_ID " + " left join zone z on z.id=item.warehouse_Area_ID "
+ " left join zone z1 on z1.id=item.default_Warehouse_Area_ID "
+ " where 1=1 and ( (ad.strBill=1 or ad.be_quality=0)) "; + " where 1=1 and ( (ad.strBill=1 or ad.be_quality=0)) ";
String jq=""; String jq="";
if(itemcode!=null&&!itemcode.equals("")) { if(itemcode!=null&&!itemcode.equals("")) {
@ -324,7 +326,17 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
return resultJson; return resultJson;
} }
} }
zoneCode= arrier[23]==null?"":arrier[23].toString();//库区 zoneCode= arrier[23]==null?"":arrier[23].toString();//推荐库区
String zone1Code= arrier[24]==null?"":arrier[24].toString();//默认库区
if(zone1Code!=null&&zone1Code.length()>0) {
obj.put("defaultZone", "默认库区"+zone1Code);
}else if(zoneCode!=null&&zoneCode.length()>0){
obj.put("defaultZone", "推荐库区"+zoneCode);
obj.put("z_id", "");
}else {
obj.put("defaultZone", "推荐库区无");
obj.put("z_id", "");
}
array.add(obj); array.add(obj);
} }
data = array.toString(); data = array.toString();
@ -2022,7 +2034,6 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
int zgz_qty =0; int zgz_qty =0;
// zgz_qty = selectPickTicketTaskView1(gzzCode,0);//工作站任务数 // zgz_qty = selectPickTicketTaskView1(gzzCode,0);//工作站任务数
String zgz_sql="select "+ String zgz_sql="select "+
// "max(t.id) as id,"+
" t.BILLCODE as BILLCODE,"+ " t.BILLCODE as BILLCODE,"+
"COUNT(DISTINCT t.BILLCODE+loc1.code+i.CODE+ik.PROP_C2) as hs,"+ "COUNT(DISTINCT t.BILLCODE+loc1.code+i.CODE+ik.PROP_C2) as hs,"+
"t.END_REGION as targetArea,"+ "t.END_REGION as targetArea,"+
@ -2056,6 +2067,7 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
// + " GROUP BY t.BILLCODE "; // + " GROUP BY t.BILLCODE ";
Query query1 = session.createSQLQuery(zgz_sql.toString()); Query query1 = session.createSQLQuery(zgz_sql.toString());
List<Object[]> list1= (List<Object[]>)query1.list(); List<Object[]> list1= (List<Object[]>)query1.list();
Map<String,String> maplist=new HashMap<String,String>();
if(list1.size()>0) { if(list1.size()>0) {
// billCodeqty=list1.size()+""; // billCodeqty=list1.size()+"";
int bilzte=0; int bilzte=0;
@ -2067,6 +2079,9 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
if(Integer.parseInt(t_qty)>0) { if(Integer.parseInt(t_qty)>0) {
zgz_qty+=Integer.parseInt(t_qty); zgz_qty+=Integer.parseInt(t_qty);
} }
if(!maplist.containsKey(BILLCODE)) {
maplist.put(BILLCODE, t_qty);
}
if(gzz_t==null||gzz_t.equals("")) { if(gzz_t==null||gzz_t.equals("")) {
bilzte++; bilzte++;
} }
@ -2116,7 +2131,7 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
+ " sum(t.PLAN_QUANTITY_MU-t.MOVED_QUANTITY_MU) as quantity,max(ik.PROP_C5) as propC5," + " sum(t.PLAN_QUANTITY_MU-t.MOVED_QUANTITY_MU) as quantity,max(ik.PROP_C5) as propC5,"
+ " loc.id as locid, loc.code as locCode,ik.PROP_C1 as propC1,ik.PROP_C2 as propC2,ik.PROP_C3 as propC3," + " loc.id as locid, loc.code as locCode,ik.PROP_C1 as propC1,ik.PROP_C2 as propC2,ik.PROP_C3 as propC3,"
+ " max(ik.PROP_C4) as propC4,MAX(s2.LP) as s_lp ,t.BILLCODE,MAX(CONVERT(varchar(100), " + " max(ik.PROP_C4) as propC4,MAX(s2.LP) as s_lp ,t.BILLCODE,MAX(CONVERT(varchar(100), "
+ " ik.PROP_D2, 23)) as propD2 ,MAX(pt.code) as p_code,MAX(sw.code),MAX(lt.to_Cell_Code) AS to_Cell_Code,MAX(s3.LP) as LP," + " ik.PROP_D2, 23)) as propD2 ,MAX(pt.code) as p_code,MAX(sw.code) as sw_code,MAX(lt.to_Cell_Code) AS to_Cell_Code,MAX(s3.LP) as LP,"
+ " item.ISBOM as ISBOM,MAX(item.SINGLE_ITEM) as SINGLE_ITEM,item.id as i_id," + " item.ISBOM as ISBOM,MAX(item.SINGLE_ITEM) as SINGLE_ITEM,item.id as i_id,"
+ " MAX(item.STR_EXTEND1) as STR_EXTEND1,MAX(item.unit) as unit," + " MAX(item.STR_EXTEND1) as STR_EXTEND1,MAX(item.unit) as unit,"
+ "max(item.be_Extend1) as be_Extend1,max(item.be_Extend2) as be_Extend2, " + "max(item.be_Extend1) as be_Extend1,max(item.be_Extend2) as be_Extend2, "
@ -2269,13 +2284,21 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
obj.put("z", z);//第几个1 obj.put("z", z);//第几个1
obj.put("w", w);//第几个0 obj.put("w", w);//第几个0
Double invQuantity= (Double) commonDao.findByQuery("select IsNULL(sum(ROUND(inv.quantity,3)),0) from Inventory inv where inv.quantity>0 and inv.location.id="+Long.parseLong(arrier[5].toString())+" and inv.itemKey.item.code='"+arrier[1].toString()+"' ").get(0); Double invQuantity= (Double) commonDao.findByQuery("select IsNULL(sum(ROUND(inv.quantity,3)),0) "
+ "from Inventory inv where inv.quantity>0 and inv.location.id="
+Long.parseLong(arrier[5].toString())+" and inv.itemKey.item.code='"
+arrier[1].toString()+"' ").get(0);
obj.put("invQuantity", invQuantity);//库位上库存数量 obj.put("invQuantity", invQuantity);//库位上库存数量
billCode=obj.get("taskCode").toString().trim();//子任务号 billCode=obj.get("taskCode").toString().trim();//子任务号
//子任务剩余任务数 //子任务剩余任务数
String z_hql=" select t.hs from PickTicketTaskView t where 1=1 and t.billcode='"+billCode +"' "; Integer z_qty=0;
Integer z_qty= Integer.parseInt(commonDao.findByQuery(z_hql).get(0).toString()) ; // String z_hql=" select t.hs from PickTicketTaskView t where 1=1 and t.billcode='"+billCode +"' ";
// z_qty= Integer.parseInt(commonDao.findByQuery(z_hql).get(0).toString()) ;
if(maplist.containsKey(billCode)) {
obj.put("z_qty", maplist.get(billCode));
}else {
obj.put("z_qty", z_qty); obj.put("z_qty", z_qty);
}
//图片路径 //图片路径
String url=""; String url="";
@ -3310,7 +3333,7 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
+ ", max(t.pickTicketDetail.pickTicket.equatedQuantity) as equatedQuantity," + ", max(t.pickTicketDetail.pickTicket.equatedQuantity) as equatedQuantity,"
+ " max(t.pickTicketDetail.strBill13) as strBill13 " + " max(t.pickTicketDetail.strBill13) as strBill13 "
+ " , max(t.srcLoc.zone.id) as zone_id , t.srcLoc.zone.beBill as beBill," + " , max(t.srcLoc.zone.id) as zone_id , t.srcLoc.zone.beBill as beBill,"
+ " max(t.srcLoc.zone.levels) as levels2 " + " max(t.srcLoc.zone.levels) as levels2 ,t.srcLoc.zone.beStock as beStock "
+ " from Task t where " + " from Task t where "
+ " t.planQuantityMU>t.movedQuantityMU and t.agvTask.id is null and " + " t.planQuantityMU>t.movedQuantityMU and t.agvTask.id is null and "
+ " t.agvStatus=1 and t.srcLoc.zone.carrierType.id=3 "; + " t.agvStatus=1 and t.srcLoc.zone.carrierType.id=3 ";
@ -3322,7 +3345,7 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
}else if(type.equals("1")){ }else if(type.equals("1")){
sql+=" and t.worker1.id>0 and t.worker1.id="+userId+" "; sql+=" and t.worker1.id>0 and t.worker1.id="+userId+" ";
} }
sql+=" group by t.billCode ,t.srcLoc.zone.beBill " sql+=" group by t.billCode ,t.srcLoc.zone.beBill,t.srcLoc.zone.beStock "
+ " order by max(t.pickTicketDetail.pickTicket.equatedQuantity) desc,max(t.dateBill1),t.billCode "; + " order by max(t.pickTicketDetail.pickTicket.equatedQuantity) desc,max(t.dateBill1),t.billCode ";
List<Object[]> objs = commonDao.findByQuery(sql); List<Object[]> objs = commonDao.findByQuery(sql);
if (objs .size() > 0) { if (objs .size() > 0) {
@ -3335,6 +3358,8 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
String receiver=object[5]==null?"":object[5].toString();//receiver备注 String receiver=object[5]==null?"":object[5].toString();//receiver备注
String zone_id=object[6]==null?"":object[6].toString();// String zone_id=object[6]==null?"":object[6].toString();//
String beBill=object[7]==null?"":object[7].toString();//是否合单 String beBill=object[7]==null?"":object[7].toString();//是否合单
String levels2=object[8]==null?"":object[8].toString();//合单标记
String beStock=object[9]==null?"":object[9].toString();//是否料号交单
String hang=countLing(billCode); String hang=countLing(billCode);
obj.put("taskCode", billCode); obj.put("taskCode", billCode);
obj.put("qty", hang); obj.put("qty", hang);
@ -3348,11 +3373,17 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
urgent="false"; urgent="false";
} }
if(beBill!=null&&(beBill.equals("true")||beBill.equals("1"))) { if(beBill!=null&&(beBill.equals("true")||beBill.equals("1"))) {
// if(levels2!=null&&!levels2.equals("0")) {
obj.put("beBill", "是"); obj.put("beBill", "是");
}else { }else {
obj.put("beBill", "否"); obj.put("beBill", "否");
} }
if(beStock!=null&&(beStock.equals("true")||beStock.equals("1"))) {
// if(levels2!=null&&!levels2.equals("0")) {
obj.put("beStock", "是");
}else {
obj.put("beStock", "否");
}
obj.put("urgent", urgent); obj.put("urgent", urgent);
array.add(obj); array.add(obj);
} }
@ -3505,25 +3536,11 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
}else { }else {
obj.put("be_Supernova","false"); obj.put("be_Supernova","false");
} }
// if(thb.getLevels()==0) { // if(thb.isBeStock()) {
if(thb.isBeStock()) { // obj.put("isScode","true");//库区是否合单任务
obj.put("isScode","true");//库区是否合单任务 // }else {
obj.put("isScode","false");//是否扫描容器吗
// String shq=" from Task t where t.billCode='"+thb.getBillCode()+"' and t.planQuantityMU>0 "
// + " order by t.operateTime desc ";
// List<Task> listtask=commonDao.findByQuery(shq);
// if(listtask.size()>0) {
// Task ta=listtask.get(0);
// if(ta.getDstLP()!=null) {
// Stock stock=commonDao.load(Stock.class, ta.getDstLP().getId());
// obj.put("s_code", stock.getLP());
// obj.put("s_id", stock.getId());
// } // }
// }
}else {
obj.put("isScode","false");
}
Double invQuantity= (Double) commonDao.findByQuery("select IsNULL(sum(ROUND(inv.quantity,3)),0) from Inventory inv " Double invQuantity= (Double) commonDao.findByQuery("select IsNULL(sum(ROUND(inv.quantity,3)),0) from Inventory inv "
+ "where inv.quantity>0 and inv.location.id="+loc.getId()+" and inv.itemKey.item.code='"+item.getCode()+"' ").get(0); + "where inv.quantity>0 and inv.location.id="+loc.getId()+" and inv.itemKey.item.code='"+item.getCode()+"' ").get(0);
@ -3586,6 +3603,7 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
ItemKey ik=this.load(ItemKey.class, task.getItemKey().getId()); ItemKey ik=this.load(ItemKey.class, task.getItemKey().getId());
Item item=this.load(Item.class, ik.getItem().getId()); Item item=this.load(Item.class, ik.getItem().getId());
Location lc=commonDao.load(Location.class, task.getSrcLoc().getId()); Location lc=commonDao.load(Location.class, task.getSrcLoc().getId());
WarehouseArea zone=commonDao.load(WarehouseArea.class, lc.getZone().getId());
String [] str=null; String [] str=null;
String ho="";//凭证行号 String ho="";//凭证行号
String xlh="";//序列号 String xlh="";//序列号
@ -3635,6 +3653,20 @@ public class DefaultQueryAppManager extends DefaultBaseManager implements QueryA
}else { }else {
obj.put("beLOC", "false"); obj.put("beLOC", "false");
} }
if(zone!=null&&zone.isBeStock()) {
String d=pickTicketManager.printLocationCodePick( "", userId, warehouseId);
if(d!=null&&d.length()>0) {
JSONObject obj2 =JSONObject.fromObject(d);
obj.put("s_id", obj2.has("s_id") ? obj2.getString("s_id") : "");
obj.put("s_code", obj2.has("s_code") ? obj2.getString("s_code") : "");
}else {
obj.put("s_id", "");
obj.put("s_code", "");
}
}else {
obj.put("s_id", "");
obj.put("s_code", "");
}
data=obj.toString(); data=obj.toString();
status = "1"; status = "1";

View File

@ -4076,6 +4076,9 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" "); List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" ");
if(MoveDocDetails.size()>0){ if(MoveDocDetails.size()>0){
MoveDocDetail mdd=MoveDocDetails.get(0); MoveDocDetail mdd=MoveDocDetails.get(0);
if(z.getId()==1766) {
commonDao.delete(mdd);
}else {
if(stock!=null) { if(stock!=null) {
mdd.setSrcLP(stock); mdd.setSrcLP(stock);
mdd.setSrcLPCode(stock.getLP()); mdd.setSrcLPCode(stock.getLP());
@ -4083,6 +4086,7 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
mdd.setWarehouseArea(z); mdd.setWarehouseArea(z);
commonDao.store(mdd); commonDao.store(mdd);
} }
}
commonDao.store(r); commonDao.store(r);
}else{ }else{
@ -4091,7 +4095,6 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
+ "receivedrecord where receivedrecord.beMoved=0 and receivedrecord.srcLP.LP='"+r.getSrcLP().getLP()+"' ");//根据这个容器号获取这个容器号的所有数据 + "receivedrecord where receivedrecord.beMoved=0 and receivedrecord.srcLP.LP='"+r.getSrcLP().getLP()+"' ");//根据这个容器号获取这个容器号的所有数据
if(ReceivedRecords.size()>0){ if(ReceivedRecords.size()>0){
for (ReceivedRecord rr : ReceivedRecords) {//循环获取的容器号的所有数据 for (ReceivedRecord rr : ReceivedRecords) {//循环获取的容器号的所有数据
ItemKey itemKey=rr.getItemKey();
if(z!=null) {//如果有这个库区 if(z!=null) {//如果有这个库区
if(stock!=null) { if(stock!=null) {
rr.setSrcLP(stock); rr.setSrcLP(stock);
@ -4102,6 +4105,9 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" "); List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" ");
if(MoveDocDetails.size()>0){ if(MoveDocDetails.size()>0){
MoveDocDetail mdd=MoveDocDetails.get(0); MoveDocDetail mdd=MoveDocDetails.get(0);
if(z.getId()==1766) {
commonDao.delete(mdd);
}else {
if(stock!=null) { if(stock!=null) {
mdd.setSrcLP(stock); mdd.setSrcLP(stock);
mdd.setSrcLPCode(stock.getLP()); mdd.setSrcLPCode(stock.getLP());
@ -4110,6 +4116,7 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
commonDao.store(mdd); commonDao.store(mdd);
} }
} }
}
//查询库存 //查询库存
Inventory srcInv =null; Inventory srcInv =null;
List<Inventory> Inventorys=commonDao.findByQuery(" from Inventory inv where inv.receivedRecordId="+r.getId()+" "); List<Inventory> Inventorys=commonDao.findByQuery(" from Inventory inv where inv.receivedRecordId="+r.getId()+" ");
@ -4129,6 +4136,9 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" "); List<MoveDocDetail> MoveDocDetails=commonDao.findByQuery(" from MoveDocDetail mdd where mdd.receivedRecordId="+r.getId()+" ");
if(MoveDocDetails.size()>0){ if(MoveDocDetails.size()>0){
MoveDocDetail mdd=MoveDocDetails.get(0); MoveDocDetail mdd=MoveDocDetails.get(0);
if(z.getId()==1766) {
commonDao.delete(mdd);
}else {
if(stock!=null) { if(stock!=null) {
mdd.setSrcLP(stock); mdd.setSrcLP(stock);
mdd.setSrcLPCode(stock.getLP()); mdd.setSrcLPCode(stock.getLP());
@ -4136,14 +4146,12 @@ public void addASNDetail(Long id,ASNDetail asnDetail) {
mdd.setWarehouseArea(z); mdd.setWarehouseArea(z);
commonDao.store(mdd); commonDao.store(mdd);
} }
}
commonDao.store(r); commonDao.store(r);
}else{ }else{
throw new BusinessException("料箱内由已上架物料,不能转换"); throw new BusinessException("料箱内由已上架物料,不能转换");
} }
} }
} }
} }

View File

@ -1069,7 +1069,10 @@ public class DefaultMoveDocManager extends DefaultBaseManager implements MoveDoc
||item.getFeeType()==null)) { ||item.getFeeType()==null)) {
interfaceReqManager.returnoutReceivedRecord(ids);// 提交SAP interfaceReqManager.returnoutReceivedRecord(ids);// 提交SAP
} }
// inventoryManager.createReceivingInventory(r, dstloc);//添加库存记录 if(item!=null&&dstloc!=null) {
item.setWarehouseArea(dstloc.getZone());
commonDao.store(item);
}
} }
} }
// 上架完成清空容器,立库区不清空 // 上架完成清空容器,立库区不清空

View File

@ -148,7 +148,7 @@ public class DefaultNewWaveManager extends DefaultBaseManager implements
+ "left join STOCK s1 on s1.id=loc.stock " + "left join STOCK s1 on s1.id=loc.stock "
+ "left join WAVE_DOC wd on wd.id=t.WAVE_DOC_ID " + "left join WAVE_DOC wd on wd.id=t.WAVE_DOC_ID "
+ "where 1=1 and pt.BILL_TYPE_ID=1094 " + "where 1=1 and pt.BILL_TYPE_ID=1094 "
+ " and t.agv_status in (0) " + " and t.agv_status=0 "
+ " and wd.code='" + waveDocCode+ "' " + " and wd.code='" + waveDocCode+ "' "
+ " and t.WAVE_DOC_ID is not null "; + " and t.WAVE_DOC_ID is not null ";
if (zone_id != null) { if (zone_id != null) {

View File

@ -9440,7 +9440,6 @@ public class DefaultPickTicketManager extends DefaultBaseManager implements Pick
WarehouseArea zone=commonDao.load(WarehouseArea.class, sloc.getZone().getId()); WarehouseArea zone=commonDao.load(WarehouseArea.class, sloc.getZone().getId());
levels=zone.getLevels(); levels=zone.getLevels();
} }
// tid=t.getId();
PickTicketDetail ptd=commonDao.load(PickTicketDetail.class, t.getPickTicketDetail().getId()); PickTicketDetail ptd=commonDao.load(PickTicketDetail.class, t.getPickTicketDetail().getId());
pt=commonDao.load(PickTicket.class, ptd.getPickTicket().getId()); pt=commonDao.load(PickTicket.class, ptd.getPickTicket().getId());
bt=commonDao.load(BillType.class, pt.getBillType().getId()); bt=commonDao.load(BillType.class, pt.getBillType().getId());
@ -9537,8 +9536,6 @@ public class DefaultPickTicketManager extends DefaultBaseManager implements Pick
int sunot=0; int sunot=0;
for(Task t:tasks) { for(Task t:tasks) {
// PickTicketDetail ptd=commonDao.load(PickTicketDetail.class, t.getPickTicketDetail().getId());
// PickTicket pt=commonDao.load(PickTicket.class, ptd.getPickTicket().getId());
if(t.getSeedWall()!=null&&sunot<1) { if(t.getSeedWall()!=null&&sunot<1) {
SeedWall sw= commonDao.load(SeedWall.class, t.getSeedWall().getId()); SeedWall sw= commonDao.load(SeedWall.class, t.getSeedWall().getId());
sw.setStatus(WarehouseAreaStatus.FREE); sw.setStatus(WarehouseAreaStatus.FREE);
@ -9572,7 +9569,7 @@ public class DefaultPickTicketManager extends DefaultBaseManager implements Pick
lp=s.getLP(); lp=s.getLP();
} }
inventoryManager.addInventoryLog(InventoryLogType.PROCESS_UP, 1, t.getBillCode(), mbloc, lp, ik, inventoryManager.addInventoryLog(InventoryLogType.PROCESS_UP, 1, t.getBillCode(), mbloc, lp, ik,
t.getStorageDate(), pt.getCode(), t.getPlanQuantity(), null, "已出库", t.getId(), "合单",pt.getBillType() , t.getStorageDate(), pt.getCode(), t.getPlanQuantity(), null, taskStatus, t.getId(), "合单",pt.getBillType() ,
userId,t.getBarCode(),srcLoc,pt.getSourceType()); userId,t.getBarCode(),srcLoc,pt.getSourceType());
} }
@ -9589,11 +9586,6 @@ public class DefaultPickTicketManager extends DefaultBaseManager implements Pick
} }
} }
//刷新合单状态
// String res=whetherOnebill(tid, commonDao,levels);
// if(res.equals("合单完成")){
// msg+=";"+"可以交单";
// }
return msg; return msg;

View File

@ -35,6 +35,7 @@ import com.dev.energy.server.dao.CommonDao;
import com.dev.energy.server.model.EntityFactory; import com.dev.energy.server.model.EntityFactory;
import com.dev.energy.server.web.security.UserHolder; import com.dev.energy.server.web.security.UserHolder;
import com.dev.swms.server.model.base.BillType; import com.dev.swms.server.model.base.BillType;
import com.dev.swms.server.model.base.ContainerType;
import com.dev.swms.server.model.base.Equipment; import com.dev.swms.server.model.base.Equipment;
import com.dev.swms.server.model.base.Item; import com.dev.swms.server.model.base.Item;
import com.dev.swms.server.model.base.ItemKey; import com.dev.swms.server.model.base.ItemKey;
@ -445,6 +446,7 @@ public class ASNReceiveServlet extends HttpServlet {
resultJson=app.saveReDeposit(taskId,deposit,workerId, wId); resultJson=app.saveReDeposit(taskId,deposit,workerId, wId);
}else if("scanpickItemCode".equals(methodType)){ }else if("scanpickItemCode".equals(methodType)){
//PDA扫描料号
String taskId =json.has("taskId")?json.getString("taskId"):""; String taskId =json.has("taskId")?json.getString("taskId"):"";
String jhItem =json.has("jhItem")?json.getString("jhItem"):""; String jhItem =json.has("jhItem")?json.getString("jhItem"):"";
resultJson=app.scanpickItemCode(taskId,jhItem,workerId, wId); resultJson=app.scanpickItemCode(taskId,jhItem,workerId, wId);
@ -1444,9 +1446,10 @@ public class ASNReceiveServlet extends HttpServlet {
LocationStorage l= commonDao.load(LocationStorage.class, l_id); LocationStorage l= commonDao.load(LocationStorage.class, l_id);
s.setLocationStorage(l); s.setLocationStorage(l);
commonDao.store(s); commonDao.store(s);
}
status="1"; status="1";
msg="操作成功!"; msg="操作成功!";
}
} catch (Exception e) { } catch (Exception e) {
msg=e.getMessage(); msg=e.getMessage();
} }
@ -2086,12 +2089,20 @@ public class ASNReceiveServlet extends HttpServlet {
List<Task> Tasks= commonDao.findByQuery(" from Task t where t.billCode='"+code+"' "); List<Task> Tasks= commonDao.findByQuery(" from Task t where t.billCode='"+code+"' ");
if(Tasks.size()>0){ if(Tasks.size()>0){
for(Task t:Tasks){ for(Task t:Tasks){
if(t.getWorker1()==null) {
t.setWorker1(worker1); t.setWorker1(worker1);
t.setDateBill4(new Date()); t.setDateBill4(new Date());
commonDao.store(t); commonDao.store(t);
}
status="1"; status="1";
msg="操作成功!"; msg="操作成功!";
}else {
Worker worker2=commonDao.load(Worker.class, t.getWorker1().getId());
status="2";
msg="已经被"+worker2.getName()+"领取!";
break;
}
}
}else{ }else{
msg = "找不到相应记录!"; msg = "找不到相应记录!";
} }
@ -2523,10 +2534,26 @@ public class ASNReceiveServlet extends HttpServlet {
if(invs.size()>0) { if(invs.size()>0) {
msg="该容器有库存不能绑定"; msg="该容器有库存不能绑定";
}else { }else {
if(s1.getContainerType()!=null) {
ContainerType c=commonDao.load(ContainerType.class, s1.getContainerType().getId());
if(c.getCode().equals("501")||c.getCode().equals("505")
||c.getCode().equals("303")||c.getCode().equals("X1")
||c.getCode().equals("X2")||c.getCode().equals("X4")
||c.getCode().equals("X8")) {
s.setStock(s1); s.setStock(s1);
commonDao.store(s); commonDao.store(s);
status="1"; status="1";
msg="成功!"; msg="成功!";
}else {
msg="该容器不能在工作站使用";
}
}else {
s.setStock(s1);
commonDao.store(s);
status="1";
msg="成功!";
}
} }
} }

View File

@ -243,11 +243,19 @@ public class PlanCountServlet extends HttpServlet {
List<CountRecord> Tasks= commonDao.findByQuery(" from CountRecord t where t.needCount=0 and t.worker1.id is null and t.countCode='"+code+"' "); List<CountRecord> Tasks= commonDao.findByQuery(" from CountRecord t where t.needCount=0 and t.worker1.id is null and t.countCode='"+code+"' ");
if(Tasks.size()>0){ if(Tasks.size()>0){
for(CountRecord t:Tasks){ for(CountRecord t:Tasks){
if(t.getWorker()==null) {
t.setWorker1(worker1); t.setWorker1(worker1);
commonDao.store(t); commonDao.store(t);
}
status="1"; status="1";
msg="操作成功!"; msg="操作成功!";
}else {
Worker worker2=commonDao.load(Worker.class, t.getWorker1().getId());
status="0";
msg="已经被"+worker2.getName()+"领取!";
break;
}
}
}else{ }else{
msg = "找不到相应记录!"; msg = "找不到相应记录!";
} }

View File

@ -6,7 +6,6 @@
height="400"> height="400">
<inputUIs> <inputUIs>
<hidden id="btc.id" reserve="false" /> <hidden id="btc.id" reserve="false" />
<list id="btc.plantCode" title="工厂" row="1" col="1" span="1" <list id="btc.plantCode" title="工厂" row="1" col="1" span="1"
width="120" readOnly="false" required="false" reserve="false" width="120" readOnly="false" required="false" reserve="false"
forceOverride="true"> forceOverride="true">

View File

@ -40,7 +40,7 @@
trimSpace="true" isPrecision="true"> trimSpace="true" isPrecision="true">
</text> </text>
<booleanList id="warehouseArea.beBill" title="是否合单" defaultValue="false" row="7" col="1" span="1" readOnly="false" required="true" reserve="true" forceOverride="true" inVisible="false"/> <booleanList id="warehouseArea.beBill" title="是否合单" defaultValue="false" row="7" col="1" span="1" readOnly="false" required="true" reserve="true" forceOverride="true" inVisible="false"/>
<booleanList id="warehouseArea.beStock" title="是否扫描容器" defaultValue="false" row="8" col="2" span="1" readOnly="false" required="true" reserve="true" forceOverride="true" inVisible="false"/> <booleanList id="warehouseArea.beStock" title="是否料号交单" defaultValue="false" row="8" col="2" span="1" readOnly="false" required="true" reserve="true" forceOverride="true" inVisible="false"/>
<textArea id="warehouseArea.description" title="描述" row="10" <textArea id="warehouseArea.description" title="描述" row="10"
col="1" span="2" readOnly="false" required="false" reserve="false" col="1" span="2" readOnly="false" required="false" reserve="false"
forceOverride="true" inVisible="false" rows="5" cols="25" /> forceOverride="true" inVisible="false" rows="5" cols="25" />

View File

@ -56,7 +56,7 @@ order by wa.name asc,wa.id asc
<column id="wa.description" title="描述" visible="true" horizonAlign="center" /> <column id="wa.description" title="描述" visible="true" horizonAlign="center" />
<column id="wa.carrierType.type" title="属性" visible="true" horizonAlign="center" /> <column id="wa.carrierType.type" title="属性" visible="true" horizonAlign="center" />
<column id="wa.levels" title="合单标记" visible="true" horizonAlign="center" /> <column id="wa.levels" title="合单标记" visible="true" horizonAlign="center" />
<column id="wa.beStock" title="是否扫描容器码" <column id="wa.beStock" title="是否料号交单"
visible="true" horizonAlign="center" verticalAlign="middle" format="booleanFormat" visible="true" horizonAlign="center" verticalAlign="middle" format="booleanFormat"
formatParam="disabled" /> formatParam="disabled" />
<column id="wa.beBill" title="是否合单" <column id="wa.beBill" title="是否合单"

View File

@ -47,7 +47,7 @@
<forwards> <forwards>
<forward name="refreshParent" newEnabled="true" <forward name="refreshParent" newEnabled="true"
editEnabled="true" /> editEnabled="true" />
<forward name="resetWindow" newEnabled="true" editEnabled="false" /> <forward name="resetWindow" newEnabled="true" editEnabled="true" />
</forwards> </forwards>
</commit> </commit>
</buttons> </buttons>

View File

@ -121,6 +121,14 @@
width="100" readOnly="false" required="false" reserve="false" width="100" readOnly="false" required="false" reserve="false"
forceOverride="true" inVisible="false" trimSpace="true" forceOverride="true" inVisible="false" trimSpace="true"
isPrecision="true" /> isPrecision="true" />
<text id="w42" title="7#3楼地堆区" defaultValue="0" row="24" span="1" col="1"
width="100" readOnly="false" required="false" reserve="false"
forceOverride="true" inVisible="false" trimSpace="true"
isPrecision="true" />
<text id="w43" title="7#4楼地堆区" defaultValue="0" row="24" span="2" col="1"
width="100" readOnly="false" required="false" reserve="false"
forceOverride="true" inVisible="false" trimSpace="true"
isPrecision="true" />
</inputUIs> </inputUIs>
<buttons> <buttons>
<commit id="save" title="save" enableType="none" invisible="false"> <commit id="save" title="save" enableType="none" invisible="false">
@ -164,12 +172,14 @@
<mapping id="w39" className="double" /> <mapping id="w39" className="double" />
<mapping id="w40" className="double" /> <mapping id="w40" className="double" />
<mapping id="w41" className="double" /> <mapping id="w41" className="double" />
<mapping id="w42" className="double" />
<mapping id="w43" className="double" />
</mappings> </mappings>
<actions> <actions>
<action managerName="countPlanManager" methodName="AGVworke" <action managerName="countPlanManager" methodName="AGVworke"
parameter="countPlan.id,wid1,wid2,wid3,wid4,wid5,wid6,wid7,wid8,wid9, parameter="countPlan.id,wid1,wid2,wid3,wid4,wid5,wid6,wid7,wid8,wid9,
wid10,wid11,wid12,wid13,wid14,wid15,wid16,wid17,wid18,wid19,wid20,wid21,wid22, wid10,wid11,wid12,wid13,wid14,wid15,wid16,wid17,wid18,wid19,wid20,wid21,wid22,
w601,w602,w603,w604,w605,w31,w32,w33,w34,w35,w36,w37,w38,w39,w40,w41" /> w601,w602,w603,w604,w605,w31,w32,w33,w34,w35,w36,w37,w38,w39,w40,w41,w42,w43" />
</actions> </actions>
<forwards> <forwards>
<forward name="refreshParent" newEnabled="true" editEnabled="true" /> <forward name="refreshParent" newEnabled="true" editEnabled="true" />

View File

@ -6,11 +6,6 @@
width="300" height="200"> width="300" height="200">
<inputUIs> <inputUIs>
<hidden id="l.id" reserve="false" /> <hidden id="l.id" reserve="false" />
<!-- <text id="hj" title="工作站" row="1" col="1" readOnly="false" -->
<!-- required="false" reserve="false" forceOverride="false" inVisible="false" -->
<!-- trimSpace="false" /> -->
<!-- trimSpace="false" /> -->
<list id="hj" title="工作站" row="1" col="1" width="120px" readOnly="false" required="false" reserve="false" forceOverride="false" enumType="STATUS"> <list id="hj" title="工作站" row="1" col="1" width="120px" readOnly="false" required="false" reserve="false" forceOverride="false" enumType="STATUS">
<hql><![CDATA[SELECT <hql><![CDATA[SELECT
ls.code, ls.code,
@ -20,7 +15,7 @@
and ls.name in ('602','603','604','605') and ls.name in ('602','603','604','605')
]]></hql> ]]></hql>
</list> </list>
<!-- <checkbox id="ordersAll" title="是否加急" row="5" col="2" defaultValue="false" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false"/> --> <checkbox id="ordersAll" title="是否加急" row="5" col="2" defaultValue="false" span="1" readOnly="false" required="false" reserve="false" forceOverride="true" inVisible="false"/>
</inputUIs> </inputUIs>
<buttons> <buttons>
<commit id="1231stockby122231" title="搬运" <commit id="1231stockby122231" title="搬运"

View File

@ -51,8 +51,8 @@
rd.itemKey.lotInfo.propC2, rd.itemKey.lotInfo.propC2,
rd.itemKey.lotInfo.propC3, rd.itemKey.lotInfo.propC3,
rd.receivedQuantity, rd.receivedQuantity,
rd.shippedQuantity, round(rd.shippedQuantity,3),
rd.receivedQuantity-rd.shippedQuantity, round(rd.receivedQuantity-rd.shippedQuantity,3),
rd.itemKey.lotInfo.propC9, rd.itemKey.lotInfo.propC9,
rd.barCode, rd.barCode,
rd.beMoved, rd.beMoved,
@ -64,8 +64,7 @@
left join rd.itemKey left join rd.itemKey
left join rd.location loc left join rd.location loc
left join rd.itemKey.item as item left join rd.itemKey.item as item
where 1=1 and ( round(rd.receivedQuantity,3)>round(rd.shippedQuantity,3) or ( /~ordersAll: {ordersAll} = true~/ ))
where 1=1 and ( rd.receivedQuantity>rd.shippedQuantity or ( /~ordersAll: {ordersAll} = true~/ ))
/~loc.code: AND loc.code like {loc.code} ~/ /~loc.code: AND loc.code like {loc.code} ~/
/~ad.strBill7: AND (rd.strBill2) like ({ad.strBill7}) ~/ /~ad.strBill7: AND (rd.strBill2) like ({ad.strBill7}) ~/
/~item.code: AND (item.code) like ({item.code}) ~/ /~item.code: AND (item.code) like ({item.code}) ~/

View File

@ -193,19 +193,22 @@
containId="true" pageId="modifyTaskSeeViewPage" /> containId="true" pageId="modifyTaskSeeViewPage" />
<popup id="wmsSapjiaodan1" title="交单完成" enableType="multi" invisible="false" containId="true" pageId="editOutHandOrderPage"> <popup id="wmsSapjiaodan1" title="交单完成" enableType="multi" invisible="false" containId="true" pageId="editOutHandOrderPage">
</popup> </popup>
<!-- <commit id="wmsSapjiaodan" title="交单完成" enableType="multi" invisible="false" confirmMessage="确认是否交单完成"> --> <commit id="2wmsCloseOrder21" title="关单" enableType="multi" invisible="false" confirmMessage="确认关闭">
<!-- <mappings> --> <enableExpression>
<!-- <mapping id="ids" className="list" /> --> <!-- <![CDATA[(${pickTicket.status}=='PICK_ALL' || ${pickTicket.status}=='SHIP_PART' || ${pickTicket.status}=='CLOSE' || ${pickTicket.status}=='HEDAN' || ${pickTicket.status}=='JIAODAN')]]> -->
<!-- </mappings> --> </enableExpression>
<!-- <actions> --> <mappings>
<!-- <action managerName="pickTicketManager" methodName="wmsjiaodan" --> <mapping id="ids" className="list" />
<!-- parameter="ids" /> --> </mappings>
<!-- </actions> --> <actions>
<!-- <forwards> --> <action managerName="pickTicketManager" methodName="wmsPickTicketStatus"
<!-- <forward name="refreshWindow" newEnabled="true" --> parameter="ids" />
<!-- editEnabled="true" /> --> </actions>
<!-- </forwards> --> <forwards>
<!-- </commit> --> <forward name="refreshWindow" newEnabled="true"
editEnabled="true" />
</forwards>
</commit>
</buttons> </buttons>
</maintainPage> </maintainPage>
</pages> </pages>

View File

@ -64,7 +64,7 @@
WHERE 1=1 WHERE 1=1
and item.id=(select d.item.id from PickTicketDetail d where d.id={id} ) and item.id=(select d.item.id from PickTicketDetail d where d.id={id} )
and rd.location.type not in('RECEIVE','SHIP') and rd.location.type not in('RECEIVE','SHIP')
AND (rd.receivedQuantity-rd.shippedQuantity) > 0 AND (round(rd.receivedQuantity,3)-round(rd.shippedQuantity,3)) > 0
AND location.warehouse = #{SESSION_WAREHOUSE} AND location.warehouse = #{SESSION_WAREHOUSE}
/~location.id: AND rd.location.id = {location.id}~/ /~location.id: AND rd.location.id = {location.id}~/
/~itemKeyLot: AND rd.strBill1 LIKE {itemKeyLot}~/ /~itemKeyLot: AND rd.strBill1 LIKE {itemKeyLot}~/
@ -74,7 +74,7 @@
order by rd.receiveDate asc,rd.id asc order by rd.receiveDate asc,rd.id asc
]]></datasource> ]]></datasource>
<columns> <columns>
<column id="inventory.id" title="ID" visible="false" /> <column id="rd.id" title="ID" visible="false" />
<column id="inputQuantity" title="inputAllocateQuantity" <column id="inputQuantity" title="inputAllocateQuantity"
visible="true" horizonAlign="center" verticalAlign="middle" inputUI="text" visible="true" horizonAlign="center" verticalAlign="middle" inputUI="text"
inputUIValidator="integerRequired" /> inputUIValidator="integerRequired" />