| | |
| | | public Boolean printAgent { get; private set; } |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | public Boolean agreeUpperLimit { get; private set; } |
| | | public Boolean UpperLimitPrice { get; private set; } |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | // fxk 2021/8/31 点检次数必须填 Star |
| | | // public boolean saveErrorflag { get; private set; } |
| | |
| | | Term_Of_Payment__c, |
| | | one_off_payment_agreed_period__c, |
| | | Contract_Amount__c, |
| | | // 上限合同 20230110 start |
| | | Limit_Price_Amount__c, |
| | | Limit_Price_Amount_in_Word__c, |
| | | // 上限合同 20230110 end |
| | | Total_Contract_Amount_In_Words__c, |
| | | Service_Contract_Staff__r.Name, |
| | | Total_Payment_Time__c, |
| | |
| | | Amount_Warranty_Coverage__c, |
| | | Amount_Warranty_Coverage_In_Word__c, |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | Decided_Estimation__c |
| | | Decided_Estimation__c, |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 star |
| | | old_Is_RecognitionModel__c |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end |
| | | //URF限次合同2期 LY 20220811 star |
| | | ,URF_Contract__c |
| | | //URF限次合同2期 LY 20220811 end |
| | | // 上限合同 20230109 start |
| | | ,Limit_Price__c |
| | | // 上限合同 20230109 end |
| | | from |
| | | Maintenance_Contract__c |
| | | where |
| | |
| | | |
| | | PageMCEElement = PageMCE[0]; |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | agreeUpperLimit = PageMCE[0].agree_Upper_limit__c ; |
| | | agreeUpperLimit = PageMCE[0].URF_Contract__c ; |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | // 上限合同 20230109 start |
| | | UpperLimitPrice = PageMCE[0].Limit_Price__c ; |
| | | // 上限合同 20230109 end |
| | | // fxk 2021/8/31 点检次数必须选 Star |
| | | // if (PageMCEElement.Inspection_Time__c == null || ''.equals(PageMCEElement.Inspection_Time__c) || '0'.equals(PageMCEElement.Inspection_Time__c)) { |
| | | // PageMCEElement.Inspection_Time__c = '1'; |
| | | // } |
| | | // fxk 2021/8/31 点检次数必须选 end |
| | | if (PageMCEElement.Small_Repair_Time__c == null) { |
| | | PageMCEElement.Small_Repair_Time__c = '48'; |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start |
| | | //PageMCEElement.Small_Repair_Time__c = '48'; |
| | | PageMCEElement.Small_Repair_Time__c = '7'; |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end |
| | | |
| | | } |
| | | if (PageMCEElement.Big_Repair_Time__c == null) { |
| | |
| | | |
| | | public List<SelectOption> getSmall_Repair_Time() { |
| | | List<SelectOption> options = new List<SelectOption>(); |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start |
| | | // options.add(new SelectOption('24', '24')); |
| | | // options.add(new SelectOption('48', '48')); |
| | | // options.add(new SelectOption('72', '72')); |
| | | options.add(new SelectOption('5', '5')); |
| | | options.add(new SelectOption('7', '7')); |
| | | options.add(new SelectOption('10', '10')); |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end |
| | | return options; |
| | | } |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start |
| | | public List<SelectOption> getLive_Technical_Support_Time() { |
| | | List<SelectOption> options = new List<SelectOption>(); |
| | | options.add(new SelectOption('24', '24')); |
| | | options.add(new SelectOption('48', '48')); |
| | | options.add(new SelectOption('72', '72')); |
| | | |
| | | |
| | | return options; |
| | | } |
| | | //XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end |
| | | |
| | | public List<SelectOption> getTour_Check() { |
| | | List<SelectOption> options = new List<SelectOption>(); |
| | | options.add(new SelectOption('0', '0')); |
| | | options.add(new SelectOption('1', '1')); |
| | | options.add(new SelectOption('2', '2')); |
| | | options.add(new SelectOption('3', '3')); |
| | | options.add(new SelectOption('4', '4')); |
| | | //URF限次合同2期 LY 20220811 start |
| | | if (PageMCEElement.URF_Contract__c ){ |
| | | options.add(new SelectOption('0', '0')); |
| | | }else { |
| | | options.add(new SelectOption('0', '0')); |
| | | options.add(new SelectOption('1', '1')); |
| | | options.add(new SelectOption('2', '2')); |
| | | options.add(new SelectOption('3', '3')); |
| | | options.add(new SelectOption('4', '4')); |
| | | } |
| | | //URF限次合同2期 LY 20220811 end |
| | | // del fxk 2021.9.2 删除多余的点检次数 Star |
| | | return options; |
| | | } |
| | |
| | | public List<SelectOption> getTerm_Of_Payment() { |
| | | List<SelectOption> options = new List<SelectOption>(); |
| | | options.add(new SelectOption('一次性付款', '一次性付款')); |
| | | options.add(new SelectOption('多次付款', '多次付款')); |
| | | //URF限次合同2期 LY 20220811 start |
| | | //if (!PageMCEElement.old_Is_RecognitionModel__c){ |
| | | if (!PageMCEElement.URF_Contract__c){ |
| | | //URF限次合同2期 LY 20220811 end |
| | | options.add(new SelectOption('多次付款', '多次付款')); |
| | | } |
| | | return options; |
| | | } |
| | | |
| | |
| | | return null; |
| | | } |
| | | // gzw fix 验证设置为全局 |
| | | if (PageMCEElement.Inspection_Time__c == null || ''.equals(PageMCEElement.Inspection_Time__c) || '0'.equals(PageMCEElement.Inspection_Time__c)) { |
| | | if ((PageMCEElement.Inspection_Time__c == null || ''.equals(PageMCEElement.Inspection_Time__c) || '0'.equals(PageMCEElement.Inspection_Time__c)) |
| | | //URF限次合同2期 LY 20220811 start |
| | | && !PageMCEElement.URF_Contract__c) { |
| | | //URF限次合同2期 LY 20220811 end |
| | | System.debug('11111111111' + PageMCEElement.Inspection_Time__c); |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING, |
| | | // '非标合同不需要打印合同文本!')); |
| | |
| | | if (PageMCEElement.Engineer_Name__c == null || ''.equals(PageMCEElement.Engineer_Name__c)) { |
| | | requiredInput += '工程师姓名'; |
| | | } |
| | | if (PageMCEElement.Phone_Number__c == null || ''.equals(PageMCEElement.Phone_Number__c)) { |
| | | if (!''.equals(requiredInput)) { |
| | | requiredInput += '、'; |
| | | } |
| | | requiredInput += '手机号码'; |
| | | } |
| | | //URF限次合同2期 LY 20220920 start |
| | | // if (PageMCEElement.Phone_Number__c == null || ''.equals(PageMCEElement.Phone_Number__c)) { |
| | | // if (!''.equals(requiredInput)) { |
| | | // requiredInput += '、'; |
| | | // } |
| | | // requiredInput += '手机号码'; |
| | | // } |
| | | //URF限次合同2期 LY 20220920 end |
| | | if (PageMCEElement.Small_Repair_Time__c == null || ''.equals(PageMCEElement.Small_Repair_Time__c)) { |
| | | if (!''.equals(requiredInput)) { |
| | | requiredInput += '、'; |