| | |
| | | <url>{!REQUIRESCRIPT("/soap/ajax/51.0/connection.js")}; |
| | | {!REQUIRESCRIPT("/soap/ajax/51.0/apex.js")}; |
| | | {!RequireScript("/resource/CommonUtilJs")} |
| | | //2021-10-21 gwy 版本更改为51.0 |
| | | |
| | | var foo = function() { |
| | | if (!confirm("不要报告后无法撤回,是否继续?")) { |
| | | return; |
| | |
| | | var updateRe = new sforce.SObject("QIS_Report__c"); |
| | | updateRe.id = "{!QIS_Report__c.Id}"; |
| | | updateRe.OCSMAdministrativeReportStatus__c = '无需报告'; |
| | | sforce.connection.update([updateRe]); |
| | | var result = sforce.connection.update([updateRe]); |
| | | var messages = getConnectDMLErrorMessages(result); |
| | | if (messages.length > 0) { |
| | | alert(messages.join("\n")); |
| | | return; |
| | | } |
| | | window.location.reload(); |
| | | }else{ |
| | | alert("没有AwareDate或已经OCSM行政报告,请确认。"); |