入库单表单插件优化,选择采购申请单后赋值逻辑添加备注字段
This commit is contained in:
parent
6409208f48
commit
3fb0022904
|
@ -103,7 +103,7 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
|
||||||
long zcgj_bigintfield = returnData.getLong("zcgj_bigintfield");//采购申请单id
|
long zcgj_bigintfield = returnData.getLong("zcgj_bigintfield");//采购申请单id
|
||||||
QFilter filter = new QFilter("purchaseentry.id", QCP.equals, zcgj_bigintfield);
|
QFilter filter = new QFilter("purchaseentry.id", QCP.equals, zcgj_bigintfield);
|
||||||
DynamicObjectCollection purchaseApply = QueryServiceHelper.query("ecma_purchaseapply",
|
DynamicObjectCollection purchaseApply = QueryServiceHelper.query("ecma_purchaseapply",
|
||||||
"purchaseentry,purchaseentry.material,purchaseentry.purchaseqty,purchaseentry.entrytaxrate,purchaseentry.price,purchaseentry.id",
|
"purchaseentry,purchaseentry.material,purchaseentry.purchaseqty,purchaseentry.entrytaxrate,purchaseentry.price,purchaseentry.id,purchaseentry.remarks",
|
||||||
new QFilter[]{filter});//采购申请单
|
new QFilter[]{filter});//采购申请单
|
||||||
|
|
||||||
long material = purchaseApply.get(0).getLong("purchaseentry.material");//采购申请分录-资源编码
|
long material = purchaseApply.get(0).getLong("purchaseentry.material");//采购申请分录-资源编码
|
||||||
|
@ -111,11 +111,13 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
|
||||||
Object entryTaxRate = purchaseApply.get(0).get("purchaseentry.entrytaxrate");//采购申请分录-税率
|
Object entryTaxRate = purchaseApply.get(0).get("purchaseentry.entrytaxrate");//采购申请分录-税率
|
||||||
Object price = purchaseApply.get(0).get("purchaseentry.price");//采购申请分录-预估单价
|
Object price = purchaseApply.get(0).get("purchaseentry.price");//采购申请分录-预估单价
|
||||||
Object purchaseEntryId = purchaseApply.get(0).get("purchaseentry.id");//采购申请分录-预估单价
|
Object purchaseEntryId = purchaseApply.get(0).get("purchaseentry.id");//采购申请分录-预估单价
|
||||||
|
Object remarks = purchaseApply.get(0).get("purchaseentry.remarks");//采购申请分录-备注
|
||||||
this.getModel().setValue("material", material, curIndex);//资源编码
|
this.getModel().setValue("material", material, curIndex);//资源编码
|
||||||
this.getModel().setValue("entrytaxrate", entryTaxRate, curIndex);//税率名称
|
this.getModel().setValue("entrytaxrate", entryTaxRate, curIndex);//税率名称
|
||||||
this.getModel().setValue("qty", purchaseQty, curIndex);//数量
|
this.getModel().setValue("qty", purchaseQty, curIndex);//数量
|
||||||
this.getModel().setValue("price", price, curIndex);//入库单价
|
this.getModel().setValue("price", price, curIndex);//入库单价
|
||||||
this.getModel().setValue("listingid", purchaseEntryId, curIndex);//合同清单id
|
this.getModel().setValue("listingid", purchaseEntryId, curIndex);//合同清单id
|
||||||
|
this.getModel().setValue("note", remarks, curIndex);//备注
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue