| | |
| | | public String lrid {get; set;} |
| | | public String assetId {get; set;} |
| | | public PageBean pBean {get; set;} |
| | | public Boolean Account_Asset_FJZ {get; set;} // 20211227 ljh SFDC-C933NJ add start |
| | | |
| | | public Map<String, String> DESC_RW {get; private set;} |
| | | public Map<String, String> DESC_RW1 {get; private set;} |
| | |
| | | , Fixture_Model_No_F__c |
| | | , SerialNumber |
| | | , Internal_Asset_number_key__c |
| | | , Account.AgentCode_Ext__c // 20211227 ljh SFDC-C933NJ add |
| | | FROM Asset |
| | | WHERE Id = :assetId]; |
| | | if (assList.size() == 0) { |
| | |
| | | return; |
| | | } |
| | | Asset ass = assList[0]; |
| | | Boolean aa = assList[0].Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ; |
| | | System.debug('zheli:'+aa + assList[0].Account.AgentCode_Ext__c +System.Label.Account_Asset_FJZ); |
| | | Account_Asset_FJZ = assList[0].Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ; // 20211227 ljh SFDC-C933NJ add start |
| | | // Savepoint sp = Database.setSavepoint(); |
| | | LostReport__c lr = new LostReport__c(); |
| | | |
| | |
| | | Asset__r.Asset_day__c, |
| | | Asset__r.Asset_Value__c, |
| | | Asset__r.RecordTypeId, |
| | | Asset__r.Account.AgentCode_Ext__c,// 20211227 ljh SFDC-C933NJ add start |
| | | LostReport__c |
| | | FROM LostReport_Detail__c |
| | | WHERE LostReport__c = :lrid |
| | | AND Asset__c != null]; |
| | | pBean.setAssetList(lrdList); |
| | | Account_Asset_FJZ = lrdList[0].Asset__r.Account.AgentCode_Ext__c == System.Label.Account_Asset_FJZ; // 20211227 ljh SFDC-C933NJ add start |
| | | |
| | | for (LostReport_Detail__c lrd : lrdList) { |
| | | if (!assetRecordTypeList.contains(lrd.Asset__r.RecordTypeId)) { |
| | | assetRecordTypeList.add(lrd.Asset__r.RecordTypeId); |
| | |
| | | update lrdList; |
| | | } |
| | | } |
| | | // 20211215 ljh SFDC-C933NJ add start |
| | | System.debug('zheli'+Account_Asset_FJZ); |
| | | if(Account_Asset_FJZ){ |
| | | pBean.lr.IsFinishPunishObj__c = true; |
| | | } |
| | | // 20211215 ljh SFDC-C933NJ add start |
| | | |
| | | if (String.isNotBlank(saveType) && saveType == '1') { |
| | | saveMessage = '已提交审批'; |
| | |
| | | public String Fixture_Model_No_F {get; set;} |
| | | public String SerialNumber {get; set;} |
| | | public String Internal_Asset_number {get; set;} |
| | | |
| | | public PageRowBean() { |
| | | lrd = new LostReport_Detail__c(); |
| | | ass = new Asset(); |