public with sharing class SaveAssetByCopyController {
|
|
public String newid { get; set; }
|
|
public void init() {
|
newid = ApexPages.currentPage().getParameters().get('newid');
|
// 资产の一部項目をclear
|
Asset ast = [select Id from Asset where Id = :newid];
|
ast.Agreed_Repair__c = null;
|
ast.LastSFDCRepairReturn_day__c = null;
|
ast.LastSFDCRepairNo__c = null;
|
ast.LastSFDCRepairNo_rankA__c = null;
|
ast.LastSFDCArankRepairReturn_day__c = null;
|
ast.Return_Without_Repair__c = null;
|
update ast;
|
}
|
}
|