生产领料添加打印功能
This commit is contained in:
parent
5ac6837ef4
commit
4fab8b3eb6
|
@ -460,6 +460,7 @@
|
|||
<action>mmpac.issue.issueDirectTransAction</action>
|
||||
<action>mmpac.issue.issueQueryFromPutPlanDirectTrans</action>
|
||||
<action>mmpac.issue.checkIsNccNative</action>
|
||||
<action>mmpac.issue.printAction</action>
|
||||
</actions>
|
||||
</authorize>
|
||||
<!-- add by maqna 备料计划统计查询 -->
|
||||
|
|
|
@ -71,4 +71,9 @@
|
|||
<clazz>nccloud.web.mmpac.issue.action.IssueCheckIsNccNative</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>mmpac.issue.printAction</name>
|
||||
<label>生产领料-备料计划打印</label>
|
||||
<clazz>nccloud.web.mmpac.issue.action.IssuePrintAction</clazz>
|
||||
</action>
|
||||
</actions>
|
|
@ -0,0 +1,63 @@
|
|||
package nccloud.pubimpl.mmpac.issue.service;
|
||||
|
||||
import nc.bs.framework.common.NCLocator;
|
||||
import nc.md.model.MetaDataException;
|
||||
import nc.md.persist.framework.IMDPersistenceQueryService;
|
||||
import nc.ui.pub.print.IMetaDataDataSource;
|
||||
import nc.vo.mmpac.reqpickm.entity.AggReqPickmVO;
|
||||
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
|
||||
|
||||
/**
|
||||
* 实现 IMetaDataDataSource,getMDObjects() 返回查询出来的数据 VO
|
||||
*/
|
||||
public class IssuePickmPrintDataSource implements IMetaDataDataSource {
|
||||
|
||||
private String[] olds;
|
||||
|
||||
public IssuePickmPrintDataSource() {
|
||||
this.olds = olds;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object[] getMDObjects() {
|
||||
IMDPersistenceQueryService bs = NCLocator.getInstance().lookup(IMDPersistenceQueryService.class);
|
||||
AggReqPickmVO[] aggvos = new AggReqPickmVO[]{};
|
||||
try {
|
||||
aggvos =(AggReqPickmVO[]) bs.queryBillOfVOByPKs(AggReqPickmVO.class, this.olds, false).toArray(new AggReqPickmVO[0]);
|
||||
}catch(MetaDataException e){
|
||||
ExceptionUtils.wrappException(e);
|
||||
}
|
||||
return aggvos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getItemValuesByExpress(String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNumber(String s) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getDependentItemExpressByExpress(String s) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAllDataItemExpress() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAllDataItemNames() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getModuleName() {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,10 @@
|
|||
package nccloud.pubimpl.mmpac.issue.service;
|
||||
|
||||
import nc.bs.framework.common.NCLocator;
|
||||
import nc.impl.pubapp.pattern.data.bill.BillQuery;
|
||||
import nc.md.model.MetaDataException;
|
||||
import nc.md.persist.framework.IMDPersistenceQueryService;
|
||||
import nc.ui.pub.print.IMetaDataDataSource;
|
||||
import nc.vo.mmpac.reqpickm.consts.ReqPickmLangConsts;
|
||||
import nc.vo.mmpac.reqpickm.entity.AggReqPickmVO;
|
||||
import nc.vo.mmpac.reqpickm.entity.ReqPickmItemVO;
|
||||
|
@ -16,6 +20,8 @@ import java.util.List;
|
|||
* 生产领料-备料计划列表打印服务类
|
||||
*/
|
||||
public class IssuePickmPrintOperator extends BaseMetaPrintService {
|
||||
|
||||
|
||||
@Override
|
||||
public Object[] getDatas(String[] ids) {
|
||||
BillQuery<AggReqPickmVO> query = new BillQuery(AggReqPickmVO.class);
|
||||
|
@ -49,4 +55,7 @@ public class IssuePickmPrintOperator extends BaseMetaPrintService {
|
|||
return uniqueIds;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue