Beispiel #1
0
        /// <summary>
        /// 教练培训信息
        /// </summary>
        /// <param name="searchTime"></param>
        /// <param name="driverShopId"></param>
        /// <param name="coachId"></param>
        /// <returns></returns>
        public ViewResult Train(DateTime?searchTime, string coachId)
        {
            CoacheInfoModel model = new CoacheInfoModel();


            if (Client.LoginUser.CoachID.IsNotNullOrEmpty())
            {
                coachId                = Client.LoginUser.CoachID;
                model.CoachList        = null;
                model.CoachReportModel = WebService.Get_CoachSalary(searchTime, coachId);
            }
            else
            {
                model.CoachList = WebService.Get_CoachSelectItem(null);
                if (model.CoachList != null && model.CoachList.Count > 0)
                {
                    model.CoachReportModel = WebService.Get_CoachSalary(searchTime, coachId);
                }
                else
                {
                    model.CoachList        = new List <Core.SelectItem>();
                    model.CoachReportModel = new CoachReportModel();
                }
            }
            return(View(model));
        }
Beispiel #2
0
        /// <summary>
        /// 教练培训信息
        /// </summary>
        /// <param name="searchTime"></param>
        /// <param name="driverShopId"></param>
        /// <param name="coachId"></param>
        /// <returns></returns>
        public ViewResult MyCash(DateTime?searchTime)
        {
            CoacheInfoModel model = new CoacheInfoModel();


            if (Client.LoginUser.CoachID.IsNotNullOrEmpty())
            {
                model.CoachList        = null;
                model.CoachReportModel = WebService.Get_CoachSalary(searchTime, Client.LoginUser.CoachID);
            }
            else
            {
                return(View("/Home/Index"));
            }
            return(View(model));
        }