| | |
| | | // lastbuy判断变更用户询价 start |
| | | , If_Account_Change__c |
| | | // lastbuy判断变更用户询价 end |
| | | // DB202303051651 产品报价金额自动计算 ssm start |
| | | , Salesdepartment_Owner__c |
| | | // DB202303051651 产品报价金额自动计算 ssm end |
| | | FROM Opportunity Where Id = :oppId]; |
| | | // 多年保修 start |
| | | trade = '外貿'; |
| | |
| | | xlscode = null; |
| | | xlsQuantity = null; |
| | | xlslist = xls.split('\t', -1); |
| | | system.debug('xlslist+++'+xlslist); |
| | | for (String s : xlslist) { |
| | | //odd number or even number |
| | | if (math.mod(i, 2) != 0) { |
| | | system.debug('xlslist1+++'+s); |
| | | //odd number |
| | | if (s == '' || s == null) { |
| | | errorflg = true; |
| | |
| | | Quantitylist.add(xlsQuantity); |
| | | } |
| | | } else { |
| | | system.debug('xlslist2+++'+s); |
| | | //even number |
| | | if (s == '' || s == null) { |
| | | errorflg = true; |
| | |
| | | } |
| | | } |
| | | } catch (Exception ex) { |
| | | system.debug('xlslist3+++'+xlscnt); |
| | | activities = tmpactivities; |
| | | errorflg = true; |
| | | errormessage = System.Label.Error_Message31; |
| | |
| | | if (codelist.size() == 0 || Quantitylist.size() == 0) { |
| | | activities = tmpactivities; |
| | | errorflg = true; |
| | | system.debug('codelist+++'+codelist); |
| | | system.debug('Quantitylist+++'+Quantitylist); |
| | | errormessage = System.Label.Error_Message31; |
| | | pageArrange(); |
| | | return null; |
| | |
| | | // lastbuy判断变更用户询价 start |
| | | public Boolean is_changed_opp { get; set; } |
| | | // lastbuy判断变更用户询价 end |
| | | // DB202303051651 产品报价金额自动计算 ssm start |
| | | // 医院合同金额比例 |
| | | public Decimal rate_hospital { get; set; } |
| | | // 经销商1合同金额比例 |
| | | public Decimal rate_agency1 { get; set; } |
| | | // DB202303051651 产品报价金额自动计算 ssm end |
| | | |
| | | public OppInfo(Opportunity opp) { |
| | | Account_RecordType_DeveloperName = opp.Account.RecordType.DeveloperName; |
| | |
| | | // lastbuy判断变更用户询价 start |
| | | is_changed_opp = opp.If_Account_Change__c != null ? opp.If_Account_Change__c : false; |
| | | // lastbuy判断变更用户询价 end |
| | | // DB202303051651 产品报价金额自动计算 ssm start |
| | | String str_rate_hospital = ControllerUtil.getValueFromJSONString(System.Label.Quote_HospitalAmount_Rate, opp.Salesdepartment_Owner__c); |
| | | String str_rate_agency1 = ControllerUtil.getValueFromJSONString(System.Label.Quote_Agency1Amount_Rate, opp.Salesdepartment_Owner__c); |
| | | rate_hospital = String.isNotBlank(str_rate_hospital) ? Decimal.valueOf(str_rate_hospital) : 1.0; |
| | | rate_agency1 = String.isNotBlank(str_rate_agency1) ? Decimal.valueOf(str_rate_agency1) : 1.0; |
| | | // DB202303051651 产品报价金额自动计算 ssm end |
| | | } |
| | | } |
| | | //TODO 1.Quoteオブジェクト追加 |