| | |
| | | if(exList.size() <= 0){ |
| | | exViewList.add(new ExMpdDetailsInfo()); |
| | | } |
| | | exList.add(new ExMpdDetailsInfo()); |
| | | ExMpdDetailsInfo exd = new ExMpdDetailsInfo(); |
| | | exd.mpdrdd.ProductsID__c = id; |
| | | exList.add(exd); |
| | | muCountMap.put(id,exList.size()); |
| | | muCountViewMap.put(id,exViewList.size()); |
| | | exmpdDetailsRecordsMap.put(id,exList); |
| | |
| | | ref.setRedirect(true); |
| | | return ref; |
| | | } |
| | | public String ProId {get;set;} |
| | | public Integer index{get;set;} |
| | | public PageReference addEx(){ |
| | | ExMpdDetailsInfo ex = new ExMpdDetailsInfo(); |
| | | ex.mpdrdd.ProductsID__c = ProId; |
| | | exmpdDetailsRecordsMap.get(ProId).add(ex); |
| | | muCountMap.get(ProId); |
| | | return null; |
| | | } |
| | | public PageReference deleteEx(){ |
| | | exmpdDetailsRecordsMap.get(ProId).remove(index); |
| | | muCountMap.get(ProId); |
| | | return null; |
| | | } |
| | | |
| | | //搜索时的sql |
| | | public String makeSoql(String Family,String Category2,String Category3,String Category4,String Category5,String CateName,String ProductCode_Ext,String GuranteeType){ |