| | |
| | | public Boolean printAgent { get; private set; } |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | public Boolean agreeUpperLimit { get; private set; } |
| | | public Boolean isPrint { get; set; } |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | // fxk 2021/8/31 点检次数必须填 Star |
| | | // public boolean saveErrorflag { get; private set; } |
| | |
| | | public Integer Contract_validMonth {get; set;} |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 End |
| | | |
| | | // WKX START |
| | | public Maintenance_Contract_Estimate__c estimate { get; set; } |
| | | public String targetEstimateId { get; private set; } |
| | | public Boolean EnablePrintContract {get; set;} |
| | | // WKX END |
| | | |
| | | public NewPaymentPlanLoadController() { |
| | | idl = ApexPages.currentPage().getParameters().get('id'); |
| | | idl = ApexPages.currentPage().getParameters().get('id'); |
| | | } |
| | | public void init() { |
| | | isPrint = false; |
| | | statusSave = 'Fin'; |
| | | testDateTime = system.now(); |
| | | // |
| | |
| | | //URF限次合同2期 LY 20220811 star |
| | | ,URF_Contract__c |
| | | //URF限次合同2期 LY 20220811 end |
| | | |
| | | // WKX 2023/7/25 DB202306182573 START |
| | | ,Estimation_Id__r.id |
| | | // WKX 2023/7/25 DB202306182573 END |
| | | |
| | | from |
| | | Maintenance_Contract__c |
| | | where |
| | |
| | | } |
| | | //fxk 新加点检总次数 2021.9.2 End |
| | | } |
| | | |
| | | // WKX START |
| | | private void setThisEstimate() { |
| | | this.estimate = [SELECT Id |
| | | ,Print_RepairPrice__c |
| | | ,Print_Agent__c |
| | | ,Print_ListPrice__c |
| | | ,Print_SumPrice__c |
| | | ,Print_Tripartite__c |
| | | ,Print_Simplify__c |
| | | FROM Maintenance_Contract_Estimate__c |
| | | WHERE Id = :PageMCEElement.Estimation_Id__r.id]; |
| | | this.EnablePrintContract = true; |
| | | } |
| | | |
| | | // WKX END |
| | | |
| | | public List<SelectOption> getSmall_Repair_Time() { |
| | | List<SelectOption> options = new List<SelectOption>(); |
| | |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING, |
| | | '付款总金额与合同金额不符。')); |
| | | statusSave = 'Denied'; |
| | | return null; |
| | | } |
| | | |
| | | } |
| | |
| | | PageMCEElement.MainLeaderManager__c = PageMCEElement.Service_Contract_Staff__r.JingliApprovalManager__c; |
| | | update PageMCEElement; |
| | | statusSave = 'Fin'; |
| | | if(isPrint == false) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '保存成功')); |
| | | } |
| | | return null; |
| | | } catch (exception ex) { |
| | | statusSave = 'Denied'; |
| | |
| | | } |
| | | public void print() { |
| | | System.debug('print start'); |
| | | this.isPrint = true; |
| | | save(); |
| | | |
| | | this.isPrint = false; |
| | | if (PageMCEElement.Decided_Estimation__c == null) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING, |
| | | '报价单没有决定之前不能打印合同文本!')); |