| | |
| | | public static String getProfileId(){ |
| | | return UserInfo.getProfileId(); |
| | | } |
| | | @AuraEnabled |
| | | public static boolean queryProfileId(){ |
| | | List<Profile> res=[select id,name from profile where name in |
| | | ('2J3_特约店窗口','2M4_市场产品本部担当(询价)','系统管理员','2S6-2_营业助理','2S7_销售本部合同管理窗口','2S6-1_销售本部窗口') |
| | | ]; |
| | | for(Profile p:res){ |
| | | if (UserInfo.getProfileId()==p.id) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | @AuraEnabled |
| | | public static Boolean judgeIsAssistantAppliedOutTime(String Quoteid) { |
| | | List<PromotionSales__c> PromotionSalesList = [select id,IsAssistantAppliedOutTime__c from PromotionSales__c where Quote__r.Quote_No__c =:Quoteid]; |