From 0e43bab9d421948c61ca0f79b763942ba9e724a6 Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期三, 30 十一月 2022 16:47:51 +0800
Subject: [PATCH] 有些是集采的有些不是是这些文件
---
force-app/main/default/classes/taskAlertController.cls | 230 ++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 154 insertions(+), 76 deletions(-)
diff --git a/force-app/main/default/classes/taskAlertController.cls b/force-app/main/default/classes/taskAlertController.cls
index 0ffa512..6f728b0 100644
--- a/force-app/main/default/classes/taskAlertController.cls
+++ b/force-app/main/default/classes/taskAlertController.cls
@@ -1,48 +1,108 @@
public with sharing class taskAlertController {
- public Integer myTaskNumber { get; set; }
- public Integer myAllTaskNumber { get; set; }
- public Integer subTaskNumber { get; set; }
- public Integer UnfinishedTaskNumber { get; set; }
- //2021-05-19 鎷涙姇鏍囬」鐩�--椤甸潰鎻愰啋 mzy start
- public Integer myTBCNumber { get; set; }
- public Integer myTBRNumber { get; set; }
- public Integer myTBBNumber { get; set; }
- //2021-05-19 鎷涙姇鏍囬」鐩�-- 椤甸潰鎻愰啋 mzy end
- //2021-11-09 SWAG-C8KCZZ mzy start
- public Boolean isTwoSOne {get;set;}
- public Integer OppWithoutConformNumber {get;set;}
- //2021-11-09 SWAG-C8KCZZ mzy end
+ public Integer myTaskNumber { get; set; }
+ public Integer myAllTaskNumber { get; set; }
+ public Integer subTaskNumber { get; set; }
+ public Integer UnfinishedTaskNumber { get; set; }
+ public Integer opportunityTasksNumber {get; set;}
+ public Integer opplostTasksNumber {get; set;}
+ public Integer subOpportunityTasksNumber {get; set;}
+ public Integer subopplostTasksNumber {get; set;}
- public Integer feedbackNumber{ get; set; } // 2021-11-04 yjk 寰呭弽棣�
- public Integer OverFeedbackNumber{ get; set; } // 2021-11-17 mzy 鍙嶉Over
- //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
- public Boolean isShowInquiry {get;set;}
- public Integer InquiryNumber{ get; set; }
- //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
- public taskAlertController() {
- }
- public PageReference init() {
- Date today = Date.today();
- Date firstDate = Date.newInstance(today.year(), today.month(), 1);
+ //2021-05-19 鎷涙姇鏍囬」鐩�--椤甸潰鎻愰啋 mzy start
+ public Integer myTBCNumber { get; set; }
+ public Integer myTBRNumber { get; set; }
+ public Integer myTBBNumber { get; set; }
+ //2021-05-19 鎷涙姇鏍囬」鐩�-- 椤甸潰鎻愰啋 mzy end
+ //2021-11-09 SWAG-C8KCZZ mzy start
+ public Boolean isTwoSOne {get;set;}
+ public Integer OppWithoutConformNumber {get;set;}
+ //2021-11-09 SWAG-C8KCZZ mzy end
- //2021-09-28 mzy 浠诲姟绠$悊鏀瑰杽 start
- taskManageController.Task allTask =
- taskManageController.getCurrentTask(null, null, '01 鍒嗛厤', null, null, null,null,
- null, null, null, '01 鍒嗛厤', null , null, null,null);
- system.debug('allTask锛�' + allTask.myTasks.size());
- //2021.9.18 pk statr
- taskManageController.Task UnfinishedTasks =
- taskManageController.getCurrentTask(null, null, '02 鎺ュ彈', null, null, null,null,
- null, null, null, '02 鎺ュ彈', null , null, null,null);
- //2021-09-28 mzy 浠诲姟绠$悊鏀瑰杽 end
- system.debug('UnfinishedTasks锛�' + UnfinishedTasks.myTasks.size());
- //2021.9.18 pk end
- myTaskNumber = allTask.myTasks == null ? 0 : allTask.myTasks.size();
- subTaskNumber = allTask.subTasks == null ? 0 : allTask.subTasks.size();
+ public Integer feedbackNumber{ get; set; } // 2021-11-04 yjk 寰呭弽棣�
+ public Integer OverFeedbackNumber{ get; set; } // 2021-11-17 mzy 鍙嶉Over
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
+ public Boolean isShowInquiry {get;set;}
+ public Integer InquiryNumber{ get; set; }
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
- //2021.9.18 澧炲姞鏈畬鎴愪换鍔℃暟閲忔樉绀� pk statr
- unfinishedTaskNumber = UnfinishedTasks.myTasks == null ? 0 : UnfinishedTasks.myTasks.size();
- //2021.9.18 澧炲姞鏈畬鎴愪换鍔℃暟閲忔樉绀� pk end
+ //2022-4-19 yjk FSE鍏遍�氬钩鍙伴」鐩� start
+ public Integer InquiryNumberFSE{ get; set; }
+ //2022-4-19 yjk FSE鍏遍�氬钩鍙伴」鐩� end
+
+ //2022-5-13 yjk 鍔╃悊寰呰窡杩涘挩璇㈠崟 start
+ public Integer InquiryNumberZhuli{ get; set; }
+ //2022-5-13 yjk 鍔╃悊寰呰窡杩涘挩璇㈠崟 end
+
+ //2022-3-17 yjk 鏍规嵁绠�妗f樉绀轰换鍔℃彁閱�
+ public Boolean isShowTask{get;set;}
+ public String proId{get;set;}
+
+
+ public Boolean Is2M4{get;set;} // 20221213 ljh SWAG-CK28WT
+
+ public taskAlertController() {
+ Is2M4 = false;
+ }
+ public PageReference init() {
+ //2022-3-17 yjk 鏍规嵁绠�妗f樉绀轰换鍔℃彁閱�
+ proId = UserInfo.getProfileId();
+ if(UserInfo.getProfileId() == System.Label.ProfileId_OBA1zbjd ){
+ isShowTask = false;
+ }else{
+ isShowTask = true;
+ }
+ // 20221013 ljh SWAG-CK28WT start
+ String p_2M4 = System.Label.ProfileId_2M4;
+ if(proId.substring(0,15) == p_2M4.substring(0,15)){
+ Is2M4 = true;
+ }
+ // 20221013 ljh SWAG-CK28WT end
+ Date today = Date.today();
+ Date firstDate = Date.newInstance(today.year(), today.month(), 1);
+
+ //2021-09-28 mzy 浠诲姟绠$悊鏀瑰杽 start
+ taskManageController.Task allTask =
+ taskManageController.getCurrentTask(null, null, '01 鍒嗛厤', null, null, null,null,
+ null, null, null, '01 鍒嗛厤', null , null, null,null);
+ system.debug('allTask锛�' + allTask.myTasks.size());
+ //2021.9.18 pk statr
+ taskManageController.Task UnfinishedTasks =
+ taskManageController.getCurrentTask(null, null, '02 鎺ュ彈', null, null, null,null,
+ null, null, null, '02 鎺ュ彈', null , null, null,null);
+ //2021-09-28 mzy 浠诲姟绠$悊鏀瑰杽 end
+ system.debug('UnfinishedTasks锛�' + UnfinishedTasks.myTasks.size());
+ //2021.9.18 pk end
+
+ //20220624 sx 璇环璺熻繘浠诲姟 澶卞崟鎶ュ憡浠诲姟 聽taskDifferent__c '琚姩浠诲姟' 聽 聽taskStatus__c 聽'02 鎺ュ彈'
+ taskManageController.Task opportunityTasks =
+ taskManageController.getCurrentTask(null,'涓爣缁撴灉纭', '02 鎺ュ彈' , null, null, null, null,
+ null, '涓爣缁撴灉纭', null, '02 鎺ュ彈', null, null, null, null);
+
+ taskManageController.Task opplostTasks =
+ taskManageController.getCurrentTask(null,'澶卞崟鎶ュ憡浠诲姟', '02 鎺ュ彈' , null, null, null, null,
+ null, '澶卞崟鎶ュ憡浠诲姟', null, '02 鎺ュ彈', null, null, null, null);
+
+
+ system.debug('==========subTask=======' + opplostTasks.subTasks);
+ system.debug('==========subTask=======' + opportunityTasks.subTasks);
+
+ system.debug('====================opplostTasks:' + opplostTasks.myTasks.size());
+ system.debug('opportunityTasks' + opportunityTasks.myTasks.size());
+ //20220624 sx 璇环璺熻繘浠诲姟end
+
+ myTaskNumber = allTask.myTasks == null ? 0 : allTask.myTasks.size();
+ subTaskNumber = allTask.subTasks == null ? 0 : allTask.subTasks.size();
+
+ //2021.9.18 澧炲姞鏈畬鎴愪换鍔℃暟閲忔樉绀� pk statr
+ unfinishedTaskNumber = UnfinishedTasks.myTasks == null ? 0 : UnfinishedTasks.myTasks.size();
+ //2021.9.18 澧炲姞鏈畬鎴愪换鍔℃暟閲忔樉绀� pk end
+
+ //20220624 sx 璇环璺熻繘浠诲姟 聽taskDifferent__c '琚姩浠诲姟' 聽 聽taskStatus__c 聽'02 鎺ュ彈'
+ opportunityTasksNumber = opportunityTasks.myTasks == null ? 0 : opportunityTasks.myTasks.size();
+ opplostTasksNumber = opplostTasks.myTasks == null ? 0 : opplostTasks.myTasks.size();
+ subOpportunityTasksNumber = opportunityTasks.subTasks == null ? 0 : opportunityTasks.subTasks.size();
+ subopplostTasksNumber = opplostTasks.subTasks == null ? 0 : opplostTasks.subTasks.size();
+ //20220624 sx 璇环璺熻繘浠诲姟end
// taskManageController.Task myallTask =
// taskManageController.getMyTask(null, null,
@@ -79,40 +139,58 @@
//2021-11-17 mzy 浠诲姟绠$悊鏀瑰杽 end
- //2021-11-08 mzy SWAG-C8KCZZ start
- AgencyOpportunityManageCotroller.AgencyOpportunityView AOView =
- AgencyOpportunityManageCotroller.getCurrentAgencyOpportunity();
- if(AOView.isShow){
- this.isTwoSOne = AOView.isShow;
- this.OppWithoutConformNumber = AOView.AgencyOpportunityList.size();
- }else{
- this.isTwoSOne = false;
- this.OppWithoutConformNumber = 0;
- }
- //2021-11-08 mzy SWAG-C8KCZZ end
- //2022-02-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
- // LeadIntentionController LeadIntController = new LeadIntentionController();
- // LeadIntController.init();
- // Integer pclCount = LeadIntController.pclCount;
- // if(pclCount>0){
- // InquiryNumber = pclCount;
- // isShowInquiry = true;
- // }else{
- // isShowInquiry = false;
- // InquiryNumber = 0;
- // }
- InquiryFormManageController.InquiryFormView IFView =
- InquiryFormManageController.getCurrentInquiryInform();
- if(IFView.isShow){
- this.isShowInquiry = IFView.isShow;
- this.InquiryNumber = IFView.InquiryFormList.size();
- }else{
- this.isShowInquiry = false;
- this.InquiryNumber = 0;
- }
+ //2021-11-08 mzy SWAG-C8KCZZ start
+ AgencyOpportunityManageCotroller.AgencyOpportunityView AOView =
+ AgencyOpportunityManageCotroller.getCurrentAgencyOpportunity();
+ if(AOView.isShow){
+ this.isTwoSOne = AOView.isShow;
+ this.OppWithoutConformNumber = AOView.AgencyOpportunityList.size();
+ }else{
+ this.isTwoSOne = false;
+ this.OppWithoutConformNumber = 0;
+ }
+ //2021-11-08 mzy SWAG-C8KCZZ end
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 start
- //2022-02-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
-
- return null;
- }
+ //2022-4-19 yjk SWAG-CBUB2W start
+ List<String> profileIdList = new List<String>();
+ profileIdList.add(System.Label.ProfileId_2S1);
+ profileIdList.add(System.Label.ProfileIdN_2S1);
+ profileIdList.add(System.Label.ProfileId_2S4);
+ profileIdList.add(System.Label.ProfileId_2S4_Chief);
+ profileIdList.add(System.Label.ProfileId_2S5);
+ profileIdList.add(System.Label.ProfileId_2S6);
+ profileIdList.add(System.Label.ProfileId_2S8);
+ profileIdList.add(System.Label.ProfileId_2S10);
+
+ if( profileIdList.contains(UserInfo.getProfileId())){
+ //2022-4-22 yjk 淇敼鏌ヨ閫昏緫
+ List<Inquiry_form__c> InquiryNumberFSEList = [select id from Inquiry_form__c where Service_Status__c = '01.鏈窡杩�' and FSE_Owner__c =:UserInfo.getUserId()];
+ InquiryNumberFSE = InquiryNumberFSEList.size();
+ }
+
+ //2022-5-13 yjk 鍔╃悊寰呰窡杩涘挩璇㈠崟 start 2022-5-30 yjk澧炲姞鍒ゆ柇
+ InquiryNumberZhuli = 0;
+ if(System.Label.ProfileId_2S6.equals(UserInfo.getProfileId())){
+ List<Inquiry_form__c> InquiryNumberZhuliList = [select id from Inquiry_form__c where IfGotoDepartment__c = false and (GI_assistant__c =:UserInfo.getUserId() or SP_assistant__c =:UserInfo.getUserId() )];
+ InquiryNumberZhuli = InquiryNumberZhuliList.size();
+ }
+ //2022-5-13 yjk 鍔╃悊寰呰窡杩涘挩璇㈠崟 end
+ LeadIntentionController LeadIntController = new LeadIntentionController();
+ LeadIntController.init();
+ Integer pclCount = LeadIntController.pclCount;
+ system.debug('pclCount--------------------'+pclCount);
+ if(pclCount>0){
+ InquiryNumber = pclCount;
+ isShowInquiry = true;
+ }else{
+ isShowInquiry = false;
+ InquiryNumber = 0;
+ }
+
+ //2022-4-19 yjk SWAG-CBUB2W end
+ //2021-11-23 mzy 鍏遍�氬钩鍙伴」鐩�-棣栭〉淇敼 end
+
+ return null;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1