|
@@ -10,6 +10,7 @@ import nc.ui.hr.frame.impl.MainBillMgrPanel;
|
|
import nc.vo.hr.tools.pub.HRAggVO;
|
|
import nc.vo.hr.tools.pub.HRAggVO;
|
|
import nc.vo.pub.ValidationException;
|
|
import nc.vo.pub.ValidationException;
|
|
import nc.vo.trade.pub.IBillStatus;
|
|
import nc.vo.trade.pub.IBillStatus;
|
|
|
|
+import u8c.bs.servlet.service.GetBaseDAOUtil;
|
|
import u8c.ui.mmpac.datamodel.OrderDataModel;
|
|
import u8c.ui.mmpac.datamodel.OrderDataModel;
|
|
import u8c.ui.mmpac.panel.OrderMainPanel;
|
|
import u8c.ui.mmpac.panel.OrderMainPanel;
|
|
import u8c.ui.mmpac.panel.OrderTestUI;
|
|
import u8c.ui.mmpac.panel.OrderTestUI;
|
|
@@ -33,6 +34,7 @@ public class OrderUnApproveAction extends AbstractAction {
|
|
if (null != s && s != null){
|
|
if (null != s && s != null){
|
|
//OrderMainVO headvo = (OrderMainVO) s[selectedRow].getParentVO();
|
|
//OrderMainVO headvo = (OrderMainVO) s[selectedRow].getParentVO();
|
|
OrderMainVO headvo = (OrderMainVO) s[0].getParentVO();
|
|
OrderMainVO headvo = (OrderMainVO) s[0].getParentVO();
|
|
|
|
+ GetBaseDAOUtil.getGeneral(headvo.getPk_order());
|
|
if (headvo.getBillstatus() != IBillStatus.CHECKPASS){
|
|
if (headvo.getBillstatus() != IBillStatus.CHECKPASS){
|
|
throw new ValidationException("非审批态单据不允许取消审批");
|
|
throw new ValidationException("非审批态单据不允许取消审批");
|
|
}
|
|
}
|