private void GetThreeData(string lillyId, string threeDate)
        {
            var resultViewModel = new OnboardChiefView.EmployeesView();
            //第3天入职
            var threeList = _onboardService.GetEmployeesView(lillyId, threeDate);

            resultViewModel.List = threeList ?? new List <OnboardChiefView.EmployeesView>();
            if (resultViewModel.List.Count > 0)
            {
                foreach (var item in GetManagerLillyIDs(resultViewModel.List))
                {
                    string url = string.Format("<a href=\"{0}/sad/onboard/OnboardIndex?appId={1}&OnboardDate={2}\">戳这里</a>", BaseUrl, appId, threeDate);
                    reply = threeMsg.Replace("{#URL}", url);
                    WechatCommon.SendMsg(int.Parse(appId), "text", item.SupervisorLillyID, "", "", reply, null);
                    _Logger.Debug <string>(string.Format("week managerID:{0},address:{1}", item.SupervisorLillyID, reply));
                }
            }
        }
        public ActionResult OnboardIndex()
        {
            var    lillyId     = ViewBag.LillyId;
            string onboardDate = Request["OnboardDate"];
            string appid       = Request["appId"];

            ViewBag.AppId       = appid;
            ViewBag.OnboardDate = onboardDate;
            if (string.IsNullOrEmpty(lillyId))
            {
                return(Redirect("/notauthed.html"));
            }

            var resultViewModel = new OnboardChiefView.EmployeesView();
            var list            = _onboardService.GetEmployeesView(lillyId, onboardDate);

            resultViewModel.List = list ?? new List <OnboardChiefView.EmployeesView>();

            return(View(resultViewModel));
        }
        private void GetCurrentData(string lillyId, string currentDate)
        {
            var resultViewModel = new OnboardChiefView.EmployeesView();
            //当天入职
            var currentList = _onboardService.GetEmployeesView(lillyId, currentDate);

            resultViewModel.List = currentList ?? new List <OnboardChiefView.EmployeesView>();

            if (resultViewModel.List.Count > 0)
            {
                foreach (var item in GetManagerLillyIDs(resultViewModel.List))
                {
                    string url      = string.Format("<a href=\"{0}/sad/onboard/OnboardIndex?appId={1}&OnboardDate={2}\">戳这里</a>", BaseUrl, appId, currentDate);
                    string file_url = string.Format("<a href=\"{0}/content/img/" + fileName.Trim() + "\">此处</a>", BaseUrl);
                    reply = currentMsg.Replace("{#URL}", url).Replace("{#File_URL}", file_url);

                    WechatCommon.SendMsg(int.Parse(appId), "text", item.SupervisorLillyID, "", "", reply, null);
                    _Logger.Debug <string>(string.Format("current managerID:{0},address:{1}", item.SupervisorLillyID, reply));
                }
            }
        }