| | |
| | | } |
| | | public String ProId {get;set;} |
| | | public Integer index{get;set;} |
| | | public PageReference addEx(){ |
| | | public void addEx(){ |
| | | ExMpdDetailsInfo ex = new ExMpdDetailsInfo(); |
| | | ex.mpdrdd.ProductsID__c = ProId; |
| | | exmpdDetailsRecordsMap.get(ProId).add(ex); |
| | | muCountMap.put(ProId,muCountMap.get(ProId) + 1); |
| | | PageReference acctPage = new ApexPages.StandardController(exmpdDetailsRecordsMap).view(); |
| | | acctPage.setRedirect(true); |
| | | return acctPage; |
| | | } |
| | | public PageReference deleteEx(){ |
| | | public void deleteEx(){ |
| | | exmpdDetailsRecordsMap.get(ProId).remove(index); |
| | | muCountMap.put(ProId,muCountMap.get(ProId) - 1); |
| | | return null; |
| | | } |
| | | |
| | | //搜索时的sql |