| trigger SyncMBAsset on Asset (after insert, before delete) { | 
| /*    // MB_资产插入用 | 
|     List<MB_Asset__c> ins_mb_assets = new List<MB_Asset__c>(); | 
|     // MB_资产删除用 | 
|     List<Asset> del_assets = new List<Asset>(); | 
|   | 
|     if (Trigger.isInsert) { | 
|         for (Asset ass : Trigger.new) { | 
|             MB_Asset__c mbass = new MB_Asset__c( | 
|                   Asset__c = ass.Id | 
|                 , CurrencyIsoCode = ass.CurrencyIsoCode | 
| // CIC 125725 start | 
| //                , OwnerId = ass.Acc_OwnerId__c | 
|                 , Opp_OCM_text__c = ass.HP_OCM__c | 
|                 , State_Text__c = ass.Province__c | 
|                 , Opportunity_Category_text__c = ass.Acc_Department_Class_Name__c | 
| // CIC 125725 end | 
|             ); | 
|             ins_mb_assets.add(mbass); | 
|         } | 
|     } else if (Trigger.isDelete) { | 
|         for (Asset ass : Trigger.old) { | 
|             del_assets.add(ass); | 
|         } | 
|     } | 
|     if (del_assets.size() > 0) { | 
|         ControllerUtil.delMBAssetList(del_assets); | 
|     } | 
|     if (ins_mb_assets.size() > 0) { | 
|         ControllerUtil.insMBAssetList(ins_mb_assets); | 
|     } | 
| */ | 
| } |