点击业务查询中是否可做收获通知(PurOrderBillList)添加"已审核"
This commit is contained in:
parent
d50d9e9503
commit
e10068528a
|
|
@ -21,11 +21,13 @@ import java.util.Set;
|
|||
* 获取选中行单据分录,遍历对比分录每条数据的 "数量" 和 "关联数量" 字段,如果每一条都相等,则将是否可做收货通知 置为 false
|
||||
*/
|
||||
public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin implements Plugin {
|
||||
|
||||
@Override
|
||||
public void itemClick(ItemClickEvent evt) {
|
||||
super.itemClick(evt);
|
||||
String itemKey = evt.getItemKey();
|
||||
if ("biz_sfkzsh".equals(itemKey)) {
|
||||
StringBuilder msg = new StringBuilder();
|
||||
BillList billList = this.getView().getControl("billlistap");
|
||||
// 获取选中行集合
|
||||
ListSelectedRowCollection selectedRows = billList.getSelectedRows();
|
||||
|
|
@ -58,9 +60,14 @@ public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin imple
|
|||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||
}
|
||||
else {
|
||||
this.getView().showTipNotification("单据【"+billNo+"】未审核");
|
||||
}
|
||||
}
|
||||
msg.append(billNo).append(",");
|
||||
}
|
||||
}
|
||||
if (msg.length() > 0) {
|
||||
msg.deleteCharAt(msg.length() - 1);
|
||||
this.getView().showTipNotification("单据【"+msg+"】未审核,不能更新【是否可做收获通知】");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue