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 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-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();

		//2021.9.18 增加未完成任务数量显示 pk statr
		unfinishedTaskNumber = UnfinishedTasks.myTasks == null ? 0 : UnfinishedTasks.myTasks.size();
		//2021.9.18 增加未完成任务数量显示 pk end

		// taskManageController.Task  myallTask =
		//     taskManageController.getMyTask(null, null,
		//                                    '01 分配', null,
		//                                    null, null);
		// myAllTaskNumber = myallTask.myTasks == null ? 0 : myallTask.myTasks.size();

		//2021-05-19 招投标项目--页面提醒  mzy  start
		TenderManageController.TenderInformation MyTender = 
			TenderManageController.getCurrentTenderInformation();
		system.debug('MyTender--TBC:'+MyTender.MyTBCTender.size());	
		system.debug('MyTender--TBR:'+MyTender.MyTBRTender.size());	
		system.debug('MyTender--TBB:'+MyTender.MyTBBTender.size());	
		//待确认的招投标项目
		myTBCNumber =  MyTender.MyTBCTender.size();
		//待关联询价的招投标项目
		myTBRNumber =  MyTender.MyTBRTender.size();
		//待应标的招投标项目
		myTBBNumber =  MyTender.MyTBBTender.size();
		//2021-05-19 招投标项目-- 页面提醒 mzy  end

		//2021-11-04 yjk 待反馈任务 start
				//2021-09-28  mzy  任务管理改善  start
		taskFeedbackController.Task  allFeedbackTask =
		    taskFeedbackController.getFeedbackTask(null, null, null, null, null, null,null,
		                                        null, null, null, null, null , null, null,null);
		feedbackNumber = allFeedbackTask.myTasks == null ? 0 : allFeedbackTask.myTasks.size();
		//2021-11-04 yjk 待反馈任务 end 

		//2021-11-17  mzy  任务管理改善  start
		//已反馈的任务
		List<Task__c> OverFeedbackTaskList = taskFeedbackController.getOverFeedbackTask();
		OverFeedbackNumber = OverFeedbackTaskList == null ? 0 : OverFeedbackTaskList.size();
		//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
		//2021-11-23 mzy 共通平台项目-首页修改  start
		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;
		}
		//2021-11-23 mzy 共通平台项目-首页修改  end 
		
		return null;
	}
}