入库单插件修改,废弃事物类型默认为空和是否主材隐显逻辑
This commit is contained in:
parent
3fb0022904
commit
86890397bc
|
@ -40,7 +40,7 @@ import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 入库单发票导入插件+事物类型默认为空+是否主材隐显
|
* 入库单发票导入插件+ 事物类型默认为空(废弃+是否主材隐显(废弃
|
||||||
*/
|
*/
|
||||||
public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn implements Plugin {
|
public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
private static final Log log = LogFactory.getLog(MaterialInbFinaceConfirmeInvoicePlugin.class);
|
private static final Log log = LogFactory.getLog(MaterialInbFinaceConfirmeInvoicePlugin.class);
|
||||||
|
@ -48,7 +48,7 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i
|
||||||
@Override
|
@Override
|
||||||
public void afterCreateNewData(EventObject e) {
|
public void afterCreateNewData(EventObject e) {
|
||||||
super.afterCreateNewData(e);
|
super.afterCreateNewData(e);
|
||||||
this.getModel().setValue("transtype", null);//事务类型默认为空
|
// this.getModel().setValue("transtype", null);//事务类型默认为空
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -57,20 +57,20 @@ public class MaterialInbFinaceConfirmeInvoicePlugin extends AbstractBillPlugIn i
|
||||||
String key = e.getProperty().getName();
|
String key = e.getProperty().getName();
|
||||||
if (key.equals("transtype")) {
|
if (key.equals("transtype")) {
|
||||||
//事务类型
|
//事务类型
|
||||||
ChangeData[] changeSet = e.getChangeSet();
|
// ChangeData[] changeSet = e.getChangeSet();
|
||||||
ChangeData changeData = changeSet[0];
|
// ChangeData changeData = changeSet[0];
|
||||||
DynamicObject transtype = (DynamicObject) changeData.getNewValue();//新值
|
// DynamicObject transtype = (DynamicObject) changeData.getNewValue();//新值
|
||||||
if (transtype != null) {
|
// if (transtype != null) {
|
||||||
String number = transtype.getString("number");
|
// String number = transtype.getString("number");
|
||||||
if (number.equals("jrjc")) {
|
// if (number.equals("jrjc")) {
|
||||||
//事务类型为即入即出时隐藏是否主材
|
// //事务类型为即入即出时隐藏是否主材
|
||||||
this.getView().setVisible(false, "ismainmaterial");//是否主材
|
// this.getView().setVisible(false, "ismainmaterial");//是否主材
|
||||||
} else {
|
// } else {
|
||||||
this.getView().setVisible(true, "ismainmaterial");//是否主材
|
// this.getView().setVisible(true, "ismainmaterial");//是否主材
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
this.getView().setVisible(true, "ismainmaterial");//是否主材
|
// this.getView().setVisible(true, "ismainmaterial");//是否主材
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue