优化代码
This commit is contained in:
parent
5018e48d38
commit
c02c675a48
|
@ -47,6 +47,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
dataEntity.set("zcgj_pjnhse", rate);
|
dataEntity.set("zcgj_pjnhse", rate);
|
||||||
// this.getModel().setValue("zcgj_pjnhbhshte", amount);
|
// this.getModel().setValue("zcgj_pjnhbhshte", amount);
|
||||||
// this.getModel().setValue("zcgj_pjnhse", rate);
|
// this.getModel().setValue("zcgj_pjnhse", rate);
|
||||||
|
this.getView().updateView();
|
||||||
} else if (name.equals("zcgj_pjnhbhshte")) {
|
} else if (name.equals("zcgj_pjnhbhshte")) {
|
||||||
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
||||||
Object zcgjPjnhhshte = changeData.getNewValue();
|
Object zcgjPjnhhshte = changeData.getNewValue();
|
||||||
|
@ -61,6 +62,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
dataEntity.set("zcgj_pjnhbhshte", amount);
|
dataEntity.set("zcgj_pjnhbhshte", amount);
|
||||||
dataEntity.set("zcgj_pjnhhshte", ofamount);
|
dataEntity.set("zcgj_pjnhhshte", ofamount);
|
||||||
dataEntity.set("zcgj_pjnhse", rate);
|
dataEntity.set("zcgj_pjnhse", rate);
|
||||||
|
this.getView().updateView();
|
||||||
}else if (name.equals("zcgj_yjhshtsr")) {
|
}else if (name.equals("zcgj_yjhshtsr")) {
|
||||||
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
@ -73,6 +75,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
// this.getModel().setValue("zcgj_yjzse", rate);
|
// this.getModel().setValue("zcgj_yjzse", rate);
|
||||||
dataEntity.set("zcgj_yjbhshtsr", amount);
|
dataEntity.set("zcgj_yjbhshtsr", amount);
|
||||||
dataEntity.set("zcgj_yjzse", rate);
|
dataEntity.set("zcgj_yjzse", rate);
|
||||||
|
this.getView().updateView();
|
||||||
} else if (name.equals("zcgj_yjbhshtsr")) {
|
} else if (name.equals("zcgj_yjbhshtsr")) {
|
||||||
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
@ -85,6 +88,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
// this.getModel().setValue("zcgj_yjzse", rate);
|
// this.getModel().setValue("zcgj_yjzse", rate);
|
||||||
dataEntity.set("zcgj_yjhshtsr", ofamount);
|
dataEntity.set("zcgj_yjhshtsr", ofamount);
|
||||||
dataEntity.set("zcgj_yjzse", rate);
|
dataEntity.set("zcgj_yjzse", rate);
|
||||||
|
this.getView().updateView();
|
||||||
}else if (name.equals("zcgj_hshtdj")) {
|
}else if (name.equals("zcgj_hshtdj")) {
|
||||||
Object zcgjhshtdj = this.getModel().getValue("zcgj_hshtdj");
|
Object zcgjhshtdj = this.getModel().getValue("zcgj_hshtdj");
|
||||||
if (zcgjhshtdj != null) {
|
if (zcgjhshtdj != null) {
|
||||||
|
@ -93,6 +97,7 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
amount = ofamount.divide(pRate,6, BigDecimal.ROUND_HALF_UP);
|
amount = ofamount.divide(pRate,6, BigDecimal.ROUND_HALF_UP);
|
||||||
dataEntity.set("zcgj_bhshtdj", amount);
|
dataEntity.set("zcgj_bhshtdj", amount);
|
||||||
// this.getModel().setValue("zcgj_bhshtdj", ofamount);
|
// this.getModel().setValue("zcgj_bhshtdj", ofamount);
|
||||||
|
this.getView().updateView();
|
||||||
}else if (name.equals("zcgj_bhshtdj")) {
|
}else if (name.equals("zcgj_bhshtdj")) {
|
||||||
Object zcgjbhshtdj = this.getModel().getValue("zcgj_bhshtdj");
|
Object zcgjbhshtdj = this.getModel().getValue("zcgj_bhshtdj");
|
||||||
if (zcgjbhshtdj != null) {
|
if (zcgjbhshtdj != null) {
|
||||||
|
@ -101,8 +106,9 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
ofamount = amount.multiply(pRate);
|
ofamount = amount.multiply(pRate);
|
||||||
dataEntity.set("zcgj_hshtdj", ofamount);
|
dataEntity.set("zcgj_hshtdj", ofamount);
|
||||||
// this.getModel().setValue("zcgj_hshtdj", ofamount);
|
// this.getModel().setValue("zcgj_hshtdj", ofamount);
|
||||||
|
this.getView().updateView();
|
||||||
}
|
}
|
||||||
this.getView().updateView();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -28,6 +28,9 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物
|
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物
|
||||||
this.setResourceTypeStyle("turnover");
|
this.setResourceTypeStyle("turnover");
|
||||||
this.afterSelectedTag("turnover");
|
this.afterSelectedTag("turnover");
|
||||||
|
}else{
|
||||||
|
this.setResourceTypeStyle("material");
|
||||||
|
this.afterSelectedTag("material");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
@ -56,6 +59,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物
|
}else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物
|
||||||
this.getView().setVisible(true, new String[]{"flexpanelturnover"});
|
this.getView().setVisible(true, new String[]{"flexpanelturnover"});
|
||||||
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
|
this.getView().setVisible(false, new String[]{"flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
|
||||||
|
}else{
|
||||||
|
this.getView().setVisible(false, new String[]{"flexpanelturnover","flexpanelsub", "flexpanellabour", "flexpanelcomposite", "flexpanelequipment", "flexpanelmaterial","flexpanelother"});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue