优化代码 資源清單過濾與基於清單控制
This commit is contained in:
		
							parent
							
								
									20565cbd5e
								
							
						
					
					
						commit
						e08cfdc9b4
					
				| 
						 | 
					@ -66,18 +66,15 @@ public class ContractPublicBillPlugin extends AbstractBillPlugIn implements Plug
 | 
				
			||||||
                comboEdit.setComboItems(comboList);
 | 
					                comboEdit.setComboItems(comboList);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }else if (name.equals("contracttype")){
 | 
					        }else if (name.equals("contracttype")){
 | 
				
			||||||
//            Object contracttype = this.getModel().getValue("contracttype");
 | 
					            Object pricetype = this.getModel().getValue("zcgj_pricetype");
 | 
				
			||||||
//            if(contracttype!=null && contracttype!=""){
 | 
					            if(pricetype!=null && pricetype!=""){
 | 
				
			||||||
//                DynamicObject contracttypeInfo = (DynamicObject)contracttype;
 | 
					                String priceType = pricetype.toString();
 | 
				
			||||||
//                String number = contracttypeInfo.getString("number");
 | 
					                if(priceType.equals("gddj")){
 | 
				
			||||||
//                if(number.equals("jjfb")||number.equals("hfzl")||number.equals("jjbc")||number.equals("jjzb")){
 | 
					                    this.getModel().setValue("isonlist", true);
 | 
				
			||||||
//                    this.getView().setVisible(true,"zcgj_xmtz");
 | 
					                }else {
 | 
				
			||||||
//                }else{
 | 
					                    this.getModel().setValue("isonlist", false);
 | 
				
			||||||
//                    this.getView().setVisible(false,"zcgj_xmtz");
 | 
					                }
 | 
				
			||||||
//
 | 
					            }
 | 
				
			||||||
//                }
 | 
					 | 
				
			||||||
//                this.getView().updateView("treelistentry");
 | 
					 | 
				
			||||||
//            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -35,7 +35,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
 | 
				
			||||||
                    this.setResourceTypeStyle("equipment");
 | 
					                    this.setResourceTypeStyle("equipment");
 | 
				
			||||||
                    this.afterSelectedTag("equipment");
 | 
					                    this.afterSelectedTag("equipment");
 | 
				
			||||||
                }else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")|| contractType.toString().equals("ck")||
 | 
					                }else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")|| contractType.toString().equals("ck")||
 | 
				
			||||||
                        contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")) {//产出物
 | 
					                        contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")||
 | 
				
			||||||
 | 
					                        contractType.toString().equals("yslht")|| contractType.toString().equals("qtzclht")) {//产出物
 | 
				
			||||||
                    this.setResourceTypeStyle("turnover");
 | 
					                    this.setResourceTypeStyle("turnover");
 | 
				
			||||||
                    this.afterSelectedTag("turnover");
 | 
					                    this.afterSelectedTag("turnover");
 | 
				
			||||||
                }else {
 | 
					                }else {
 | 
				
			||||||
| 
						 | 
					@ -44,7 +45,6 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        System.out.println();
 | 
					        System.out.println();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue