|
@@ -24,19 +24,16 @@ import nc.hr.utils.PubEnv;
|
|
|
import nc.itf.uap.IUAPQueryBS;
|
|
|
import nc.jdbc.framework.processor.BeanListProcessor;
|
|
|
import nc.jdbc.framework.processor.ColumnProcessor;
|
|
|
-import nc.ui.pub.ButtonObject;
|
|
|
import nc.ui.pub.ClientEnvironment;
|
|
|
import nc.ui.pub.beans.MessageDialog;
|
|
|
import nc.ui.pub.beans.UIButton;
|
|
|
-import nc.ui.pub.beans.UIDesktopPane;
|
|
|
import nc.ui.pub.beans.UIDialog;
|
|
|
import nc.ui.pub.beans.UISplitPane;
|
|
|
import nc.ui.pub.bill.BillCardPanel;
|
|
|
-import nc.ui.pub.bill.BillData;
|
|
|
import nc.ui.pub.bill.BillEditEvent;
|
|
|
import nc.ui.pub.bill.BillEditListener;
|
|
|
-import nc.ui.pub.bill.BillItem;
|
|
|
import nc.ui.querytemplate.QueryConditionDLG;
|
|
|
+import nc.vo.arap.util.StringUtils;
|
|
|
import nc.vo.bd.invdoc.InvbasdocVO;
|
|
|
import nc.vo.bd.invdoc.InvmandocVO;
|
|
|
import nc.vo.hr.tools.pub.HRAggVO;
|
|
@@ -80,7 +77,6 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
|
|
|
private HRAggVO aggvo;
|
|
|
IMaterialOutMaintainAPI imaterapi=(IMaterialOutMaintainAPI) NCLocator.getInstance().lookup(IMaterialOutMaintainAPI.class.getName());
|
|
|
IOrderTotalInfo iorder = NCLocator.getInstance().lookup(IOrderTotalInfo.class);
|
|
|
-
|
|
|
public ToMaterialOutDialog(HRAggVO aggvo) {
|
|
|
super();
|
|
|
initialize(aggvo);
|
|
@@ -106,7 +102,6 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
|
|
|
this.issueArrays = getIssueVOs(aggvo);
|
|
|
getJlcardPanel().getBillModel().setBodyDataVO(issueArrays);
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -154,7 +149,14 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
|
|
|
if(num.sub(execnum).compareTo(UFDouble.ZERO_DBL)==0){
|
|
|
continue;
|
|
|
}
|
|
|
- issuevo.setBdef5(num.sub(execnum).setScale(2, UFDouble.ROUND_HALF_UP).toString());
|
|
|
+ issuevo.setBdef5(num.sub(execnum).setScale(2, UFDouble.ROUND_HALF_UP).toString());//本次执行数量
|
|
|
+ //查询入库颜色,显示入库颜色,生成材料出库以入库颜色为准
|
|
|
+ String rkcolur=issuevo.getBdef4();
|
|
|
+ if(!StringUtils.isEmpty(rkcolur)) {
|
|
|
+ issuevo.setColor(rkcolur);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
issuevos.add(issuevo);
|
|
|
}
|
|
|
|
|
@@ -557,7 +559,8 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
|
|
|
GeneralBillVO[] res = imaterapi.insertMaterialOuts(aggvos);
|
|
|
GeneralBillVO resvo = res[0];
|
|
|
Boolean updateres = iorder.UpdateIssueExecNum(updatemap);
|
|
|
- // MessageDialog.showHintDlg(mainpanel, "成功", "材料出库单"+resvo.getVBillCode()+"新增成功");
|
|
|
+// MessageDialog.showHintDlg(mainpanel, "成功", "材料出库单"+resvo.getVBillCode()+"新增成功!");
|
|
|
+ MessageDialog.showHintDlg(mainpanel, "成功", "材料出库单新增成功!");
|
|
|
this.closeCancel();
|
|
|
} catch (Exception e1) {
|
|
|
MessageDialog.showErrorDlg(mainpanel, "错误", e1.getMessage());
|