收款单的收款人变更后,非客商,触发下推标记更新
This commit is contained in:
parent
ed60ab6be3
commit
63145a1c92
|
|
@ -68,11 +68,16 @@ public class JHSSOAuthHandler implements ThirdSSOAuthHandler {
|
||||||
//查看返回值是不是我们项目组的人员,如果是,得使用用户名登录,否则用工号
|
//查看返回值是不是我们项目组的人员,如果是,得使用用户名登录,否则用工号
|
||||||
if(isprojectgroup(numOrName)){
|
if(isprojectgroup(numOrName)){
|
||||||
result.setUserType(UserProperType.UserName);
|
result.setUserType(UserProperType.UserName);
|
||||||
}else{
|
|
||||||
result.setUserType(UserProperType.WorkerNumber);
|
|
||||||
}
|
|
||||||
//用户信息标识
|
//用户信息标识
|
||||||
result.setUser(numOrName);
|
result.setUser(numOrName);
|
||||||
|
}else{
|
||||||
|
result.setUserType(UserProperType.WorkerNumber);
|
||||||
|
//用户信息标识
|
||||||
|
result.setUser(numOrName);
|
||||||
|
if("xuzhijun".equals(numOrName)){
|
||||||
|
result.setUser("administrator");
|
||||||
|
}
|
||||||
|
}
|
||||||
result.setSucess(true);
|
result.setSucess(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,8 +157,10 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
} else if (StringUtils.equals(fieldKey, "payer")) {
|
} else if (StringUtils.equals(fieldKey, "payer")) {
|
||||||
//监听付款人id
|
//监听付款人id
|
||||||
//一次性客户/一次性供应商时设置默认值。
|
//一次性客户/一次性供应商时设置默认值。
|
||||||
|
DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entry");
|
||||||
String type = (String) this.getModel().getValue(RecFieldsInfo.PAYER_TYPE);
|
String type = (String) this.getModel().getValue(RecFieldsInfo.PAYER_TYPE);
|
||||||
if ("bd_customer".equals(type) || "bd_supplier".equals(type)) {
|
if ("bd_customer".equals(type) || "bd_supplier".equals(type)) {
|
||||||
|
//付款人是客商
|
||||||
Object value = this.getModel().getValue("payer");
|
Object value = this.getModel().getValue("payer");
|
||||||
if (null != value) {
|
if (null != value) {
|
||||||
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(value, type);
|
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(value, type);
|
||||||
|
|
@ -179,7 +181,6 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
iskdqbqz = true;
|
iskdqbqz = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entry");
|
|
||||||
if(iskdqbqz){
|
if(iskdqbqz){
|
||||||
for (int i = 0; i < entryEntity.size(); i++) {
|
for (int i = 0; i < entryEntity.size(); i++) {
|
||||||
this.getModel().setValue("shjh_needpushbill", false, i);//不需要下推清账单
|
this.getModel().setValue("shjh_needpushbill", false, i);//不需要下推清账单
|
||||||
|
|
@ -210,10 +211,14 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
this.getModel().setValue("shjh_closingstatus", "A", i);//无需金蝶清账
|
this.getModel().setValue("shjh_closingstatus", "A", i);//无需金蝶清账
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
this.getView().updateView();
|
//付款人不是客商 直接设为不需要下推
|
||||||
|
for (int i = 0; i < entryEntity.size(); i++) {
|
||||||
|
this.getModel().setValue("shjh_needpushbill", false, i);//不需要下推清账单
|
||||||
|
this.getModel().setValue("shjh_closingstatus", "A", i);//无需金蝶清账
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
this.getView().updateView();
|
||||||
}else if (StringUtils.equals(fieldKey, "shjh_bizsmall")) {
|
}else if (StringUtils.equals(fieldKey, "shjh_bizsmall")) {
|
||||||
//监听业务小类
|
//监听业务小类
|
||||||
//付款人类型=客户或者其他,都可以,根据业务小类的清账方式来判断
|
//付款人类型=客户或者其他,都可以,根据业务小类的清账方式来判断
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue