|
@@ -32,16 +32,16 @@ public class DemandPurchaseRequisitionAction extends AbstractAction {
|
|
|
@Override
|
|
|
public void execute() throws Exception {
|
|
|
// TODO Auto-generated method stub
|
|
|
- // 获取材料请购单
|
|
|
+ // 鑾峰彇鏉愭枡璇疯喘鍗�
|
|
|
MainBillMgrPanel mainMgrPanel = (MainBillMgrPanel) getMainPanel();
|
|
|
int selectedRow = ((DemandMainPanel) getMainPanel()).getSelectedRow();
|
|
|
HRAggVO s = (HRAggVO) mainMgrPanel.getMainBillCardPanel().getData();
|
|
|
DemandVO demandVO = (DemandVO) s.getParentVO();//
|
|
|
if (1!=demandVO.getBillstatus()) {
|
|
|
- throw new ValidationException("单据需要先审批");// 新增请购单
|
|
|
+ throw new ValidationException("鍗曟嵁闇€瑕佸厛瀹℃壒");// 鏂板�璇疯喘鍗�
|
|
|
}
|
|
|
if (null != s && s != null) {
|
|
|
-// getInstance(IDemandPurchaseRequisition.class).addPraybillVO(s);// 新增请购单
|
|
|
+// getInstance(IDemandPurchaseRequisition.class).addPraybillVO(s);// 鏂板�璇疯喘鍗�
|
|
|
|
|
|
// DemandVO demandVO = (DemandVO) s.getParentVO();//
|
|
|
CircularlyAccessibleValueObject[] demandBVOList = s.getAllChildrenVO();//
|
|
@@ -52,10 +52,11 @@ public class DemandPurchaseRequisitionAction extends AbstractAction {
|
|
|
}
|
|
|
}
|
|
|
if(demandBVOs.size()==0) {
|
|
|
- throw new BusinessException("当前材料采购单没有数据,请先添加数据");
|
|
|
+ throw new BusinessException("褰撳墠鏉愭枡閲囪喘鍗曟病鏈夋暟鎹�紝璇峰厛娣诲姞鏁版嵁");
|
|
|
}
|
|
|
IDemandPurchaseRequisition iDemandPurchaseRequisition = NCLocator.getInstance().lookup(IDemandPurchaseRequisition.class);
|
|
|
iDemandPurchaseRequisition.addPraybillVO(demandVO,demandBVOs);
|
|
|
+ MessageDialog.showHintDlg(frameUI, "鎴愬姛", "璇疯喘鍗曟柊澧炴垚鍔�");
|
|
|
}
|
|
|
}
|
|
|
|