/// <summary> /// 判断年检配置唯一性 /// 同PID同城市(车牌前缀),只能有一条启用的数据 /// PID、车牌前缀、供应商简称 作唯一性约束 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool IsExistAnnualInspectionAgent(VehicleAnnualInspectionAgentModel model) { var result = true; try { result = dbScopeManagerConfigurationRead.Execute (conn => DalVehicleAnnualInspectionAgent.IsExistAnnualInspectionAgent(conn, model)); } catch (Exception ex) { Logger.Error("IsExistAnnualInspectionAgent", ex); } return(result); }