parent
1bd8b4b98d
commit
b0af76d40e
|
|
@ -38,7 +38,7 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
public void afterBindData(EventObject e) {
|
public void afterBindData(EventObject e) {
|
||||||
super.afterBindData(e);
|
super.afterBindData(e);
|
||||||
//携带付款人编码
|
//携带付款人编码
|
||||||
String payerformid = ""+this.getView().getModel().getValue("payerformid");//付款人类型标识ID
|
String payerformid = ""+this.getView().getModel().getValue("payertype");//付款人类型标识ID
|
||||||
Long payer = Long.valueOf(""+this.getView().getModel().getValue("payer"));//付款人ID
|
Long payer = Long.valueOf(""+this.getView().getModel().getValue("payer"));//付款人ID
|
||||||
if (payer != 0 && payerformid!= null &&!payerformid.isEmpty()) {
|
if (payer != 0 && payerformid!= null &&!payerformid.isEmpty()) {
|
||||||
if (!"other".equals(payerformid)) {
|
if (!"other".equals(payerformid)) {
|
||||||
|
|
|
||||||
|
|
@ -39,38 +39,38 @@ public class TextFieldDemo extends AbstractFormPlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DynamicObject paymentidentify = (DynamicObject)this.getView().getModel().getValue("paymentidentify");//付款单标识
|
// DynamicObject paymentidentify = (DynamicObject)this.getView().getModel().getValue("paymentidentify");//付款单标识
|
||||||
if (null != paymentidentify) {
|
// if (null != paymentidentify) {
|
||||||
//FKBS01 主动付款 FKBS02 被动付款
|
// //FKBS01 主动付款 FKBS02 被动付款
|
||||||
String number = paymentidentify.getString("number");//付款单标识
|
// String number = paymentidentify.getString("number");//付款单标识
|
||||||
//再加个判断,如果是 “主动付款”不进行必填校验。
|
// //再加个判断,如果是 “主动付款”不进行必填校验。
|
||||||
if (!"FKBS01".equals(number)) {
|
// if (!"FKBS01".equals(number)) {
|
||||||
// 获取成本中心和利润中心的控件
|
// // 获取成本中心和利润中心的控件
|
||||||
BasedataEdit shjh_costcenter = this.getView().getControl("shjh_costcenter");
|
// BasedataEdit shjh_costcenter = this.getView().getControl("shjh_costcenter");
|
||||||
BasedataEdit shjh_profitcenter = this.getView().getControl("shjh_pc");
|
// BasedataEdit shjh_profitcenter = this.getView().getControl("shjh_pc");
|
||||||
//根据业务小类设置 成本中心,利润中心是否必填
|
// //根据业务小类设置 成本中心,利润中心是否必填
|
||||||
DynamicObject shjhBizsmall = (DynamicObject)this.getView().getModel().getValue("shjh_bizsmall");
|
// DynamicObject shjhBizsmall = (DynamicObject)this.getView().getModel().getValue("shjh_bizsmall");
|
||||||
BasedataProp tp = (BasedataProp) shjh_costcenter.getProperty();
|
// BasedataProp tp = (BasedataProp) shjh_costcenter.getProperty();
|
||||||
BasedataProp td = (BasedataProp) shjh_profitcenter.getProperty();
|
// BasedataProp td = (BasedataProp) shjh_profitcenter.getProperty();
|
||||||
|
//
|
||||||
if (null != shjhBizsmall) {
|
// if (null != shjhBizsmall) {
|
||||||
shjhBizsmall = BusinessDataServiceHelper.loadSingle(shjhBizsmall.getPkValue(),"shjh_bizsmalltype");
|
// shjhBizsmall = BusinessDataServiceHelper.loadSingle(shjhBizsmall.getPkValue(),"shjh_bizsmalltype");
|
||||||
// 获取成本中心的必填配置
|
// // 获取成本中心的必填配置
|
||||||
boolean shjhCc = shjhBizsmall.getBoolean("shjh_cc");
|
// boolean shjhCc = shjhBizsmall.getBoolean("shjh_cc");
|
||||||
shjh_costcenter.setMustInput(shjhCc);
|
// shjh_costcenter.setMustInput(shjhCc);
|
||||||
tp.setMustInput(shjhCc);
|
// tp.setMustInput(shjhCc);
|
||||||
// 获取利润中心的必填配置
|
// // 获取利润中心的必填配置
|
||||||
boolean shjhPc = shjhBizsmall.getBoolean("shjh_pc");
|
// boolean shjhPc = shjhBizsmall.getBoolean("shjh_pc");
|
||||||
shjh_profitcenter.setMustInput(shjhPc);
|
// shjh_profitcenter.setMustInput(shjhPc);
|
||||||
td.setMustInput(shjhPc);
|
// td.setMustInput(shjhPc);
|
||||||
}else {
|
// }else {
|
||||||
shjh_costcenter.setMustInput(false);
|
// shjh_costcenter.setMustInput(false);
|
||||||
tp.setMustInput(false);
|
// tp.setMustInput(false);
|
||||||
shjh_profitcenter.setMustInput(false);
|
// shjh_profitcenter.setMustInput(false);
|
||||||
td.setMustInput(false);
|
// td.setMustInput(false);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
//赋值结算方式
|
//赋值结算方式
|
||||||
|
|
@ -80,38 +80,38 @@ public class TextFieldDemo extends AbstractFormPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void propertyChanged(PropertyChangedArgs e) {
|
public void propertyChanged(PropertyChangedArgs e) {
|
||||||
super.propertyChanged(e);
|
super.propertyChanged(e);
|
||||||
DynamicObject paymentidentify = (DynamicObject)this.getView().getModel().getValue("paymentidentify");//付款单标识
|
// DynamicObject paymentidentify = (DynamicObject)this.getView().getModel().getValue("paymentidentify");//付款单标识
|
||||||
if (null != paymentidentify) {
|
// if (null != paymentidentify) {
|
||||||
//FKBS01 主动付款 FKBS02 被动付款
|
// //FKBS01 主动付款 FKBS02 被动付款
|
||||||
String number = paymentidentify.getString("number");//付款单标识
|
// String number = paymentidentify.getString("number");//付款单标识
|
||||||
//再加个判断,如果是 “主动付款”不进行必填校验。
|
// //再加个判断,如果是 “主动付款”不进行必填校验。
|
||||||
if (!"FKBS01".equals(number)) {
|
// if (!"FKBS01".equals(number)) {
|
||||||
// 获取成本中心和利润中心的控件
|
// // 获取成本中心和利润中心的控件
|
||||||
BasedataEdit shjh_costcenter = this.getView().getControl("shjh_costcenter");
|
// BasedataEdit shjh_costcenter = this.getView().getControl("shjh_costcenter");
|
||||||
BasedataEdit shjh_profitcenter = this.getView().getControl("shjh_pc");
|
// BasedataEdit shjh_profitcenter = this.getView().getControl("shjh_pc");
|
||||||
//根据业务小类设置 成本中心,利润中心是否必填
|
// //根据业务小类设置 成本中心,利润中心是否必填
|
||||||
DynamicObject shjhBizsmall = (DynamicObject)this.getView().getModel().getValue("shjh_bizsmall");
|
// DynamicObject shjhBizsmall = (DynamicObject)this.getView().getModel().getValue("shjh_bizsmall");
|
||||||
BasedataProp tp = (BasedataProp) shjh_costcenter.getProperty();
|
// BasedataProp tp = (BasedataProp) shjh_costcenter.getProperty();
|
||||||
BasedataProp td = (BasedataProp) shjh_profitcenter.getProperty();
|
// BasedataProp td = (BasedataProp) shjh_profitcenter.getProperty();
|
||||||
|
//
|
||||||
if (null != shjhBizsmall) {
|
// if (null != shjhBizsmall) {
|
||||||
shjhBizsmall = BusinessDataServiceHelper.loadSingle(shjhBizsmall.getPkValue(),"shjh_bizsmalltype");
|
// shjhBizsmall = BusinessDataServiceHelper.loadSingle(shjhBizsmall.getPkValue(),"shjh_bizsmalltype");
|
||||||
// 获取成本中心的必填配置
|
// // 获取成本中心的必填配置
|
||||||
boolean shjhCc = shjhBizsmall.getBoolean("shjh_cc");
|
// boolean shjhCc = shjhBizsmall.getBoolean("shjh_cc");
|
||||||
shjh_costcenter.setMustInput(shjhCc);
|
// shjh_costcenter.setMustInput(shjhCc);
|
||||||
tp.setMustInput(shjhCc);
|
// tp.setMustInput(shjhCc);
|
||||||
// 获取利润中心的必填配置
|
// // 获取利润中心的必填配置
|
||||||
boolean shjhPc = shjhBizsmall.getBoolean("shjh_pc");
|
// boolean shjhPc = shjhBizsmall.getBoolean("shjh_pc");
|
||||||
shjh_profitcenter.setMustInput(shjhPc);
|
// shjh_profitcenter.setMustInput(shjhPc);
|
||||||
td.setMustInput(shjhPc);
|
// td.setMustInput(shjhPc);
|
||||||
}else {
|
// }else {
|
||||||
shjh_costcenter.setMustInput(false);
|
// shjh_costcenter.setMustInput(false);
|
||||||
tp.setMustInput(false);
|
// tp.setMustInput(false);
|
||||||
shjh_profitcenter.setMustInput(false);
|
// shjh_profitcenter.setMustInput(false);
|
||||||
td.setMustInput(false);
|
// td.setMustInput(false);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
//赋值结算方式
|
//赋值结算方式
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue