예제 #1
0
        public JsonResult GetRideCheckFailed(string numberPlate)
        {
            ExecutionResult result = new ExecutionResult();

            if (string.IsNullOrEmpty(numberPlate))
            {
                result.Message = "车牌号不能为空!";
            }
            else
            {
                try
                {
                    RideCheckFeedbackLogic logic = new RideCheckFeedbackLogic();
                    var rideCheckFaileds         = logic.GetRideCheckFailed(numberPlate);
                    if (rideCheckFaileds.Count > 0)
                    {
                        List <string> list = new List <string>();
                        foreach (var item in rideCheckFaileds)
                        {
                            string str = string.Format("该车于时间:{0} 上车地点:{1} 下车地点:{2} 接受过跳车检查,存在以下不合格项:{3}",
                                                       item.跳车时间,
                                                       item.车地点,
                                                       item.车地点,
                                                       item.跳车检查结果.Replace("不合格:", ""));
                            list.Add(str);
                        }
                        result.Result  = list;
                        result.Success = true;
                    }
                    else
                    {
                        result.Message = "该车辆不存在不合格项!";
                    }
                }
                catch (Exception ex)
                {
                    result.Message = ex.Message;
                }
            }
            ExecHistry("GetRideCheckFailed", numberPlate, result.Success.ToString());
            return(Json(result, JsonRequestBehavior.AllowGet));
        }
 public HomecomingSurveyController()
 {
     _hsl   = new HomecomingSurveyLogic();
     _logic = new RideCheckFeedbackLogic();
     _ol    = new OrganizationManagementLogic();
 }
예제 #3
0
 public VehicleRepairComplaintsController()
 {
     _bvrc  = new Business_VehicleRepairComplaintsLogic();
     _logic = new RideCheckFeedbackLogic();
 }
예제 #4
0
 public RideCheckFeedbackController()
 {
     _rl = new RideCheckFeedbackLogic();
     _al = new AuthorityManageLogic();
 }
 public RideCheckFeedbackController()
 {
     _logic = new RideCheckFeedbackLogic();
 }
예제 #6
0
 public SurveyVaccinationController()
 {
     _logic = new RideCheckFeedbackLogic();
     _ol    = new OrganizationManagementLogic();
 }