Compare commits

..

No commits in common. "ef047b67f1eb8c2368a33787994f74504714dc23" and "74268c7dd15ccc7d138124fc2660175d17eb41e5" have entirely different histories.

4 changed files with 4 additions and 30 deletions

View File

@ -29,8 +29,7 @@ public class ContractFilterPlugin extends AbstractBillPlugIn implements Plugin,
supplies.addBeforeF7SelectListener(this);
BasedataEdit qdlx = this.getControl("treeresourceitem");
qdlx.addBeforeF7SelectListener(this);
BasedataEdit contractprocess = this.getControl("zcgj_contractprocess");
contractprocess.addBeforeF7SelectListener(this);
}
@Override
@ -68,17 +67,6 @@ public class ContractFilterPlugin extends AbstractBillPlugIn implements Plugin,
showParameter.setCustomParam("contractType",contractType.getString("number"));
}
} else if (name1.equals("zcgj_contractprocess")) {
String name = this.getModel().getDataEntity().getDataEntityType().getName();
if(name.equals("ec_in_contract")){
Object project = this.getModel().getValue("project");
if(project!=null){
DynamicObject projectInfo = (DynamicObject)project;
QFilter qFilter = new QFilter("project.id", QCP.equals, projectInfo.getLong("id"));
ListShowParameter showParameter = (ListShowParameter) beforeF7SelectEvent.getFormShowParameter();
showParameter.getListFilterParameter().getQFilters().add(qFilter);
}
}
}
}
// }

View File

@ -18,7 +18,7 @@ import java.util.EventObject;
/**
* 单据界面插件
* 支出合同结算供应商变更插件
* 收入合同结算供应商变更插件
*/
public class ContractSettleBillPlugin extends AbstractBillPlugIn implements Plugin {

View File

@ -48,8 +48,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
// this.getModel().setValue("zcgj_pjnhbhshte", amount);
// this.getModel().setValue("zcgj_pjnhse", rate);
} else if (name.equals("zcgj_pjnhbhshte")) {
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
Object zcgjPjnhhshte = changeData.getNewValue();
Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
System.out.println();
if (zcgjPjnhhshte != null) {
amount = new BigDecimal(zcgjPjnhhshte.toString());
@ -58,7 +57,6 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
rate = ofamount.subtract(amount);
// this.getModel().setValue("zcgj_pjnhhshte", ofamount);
// this.getModel().setValue("zcgj_pjnhse", rate);
dataEntity.set("zcgj_pjnhbhshte", amount);
dataEntity.set("zcgj_pjnhhshte", ofamount);
dataEntity.set("zcgj_pjnhse", rate);
}else if (name.equals("zcgj_yjhshtsr")) {

View File

@ -1,17 +1,12 @@
package zcgj.zcdev.zcdev.pr.plugin.form;
import kd.bos.entity.tree.TreeNode;
import kd.bos.form.FormShowParameter;
import kd.bos.form.IPageCache;
import kd.bos.form.control.TreeView;
import kd.ec.basedata.common.enums.ResourceTypeEnum;
import kd.ec.basedata.formplugin.ResourceFilterPlugin;
import kd.ec.basedata.formplugin.ResourceItemListPlugin;
import java.util.EventObject;
import java.util.Map;
public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
public class ResourceFilterExtPlugin extends ResourceFilterPlugin {
@Override
public void afterBindData(EventObject e) {
super.afterBindData(e);
@ -22,21 +17,14 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
if (contractType.toString().equals("wzcg")) {//物资采购
this.getView().setVisible(true, new String[]{"flexpanelmaterial"});
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelturnover","flexpanelother"});
this.setResourceTypeStyle("material");
this.afterSelectedTag("material");
} else if (contractType.toString().equals("sbcg")) {//设备采购
this.getView().setVisible(true, new String[]{"flexpanelequipment"});
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelmaterial", "flexpanelturnover","flexpanelother"});
this.setResourceTypeStyle("equipment");
this.afterSelectedTag("equipment");
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物
this.getView().setVisible(true, new String[]{"flexpanelturnover"});
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
this.setResourceTypeStyle("turnover");
this.afterSelectedTag("turnover");
}
}
System.out.println();
}
}