Example #1
0
        public QueryMonitoringPointsNumberByPointsPositionIdResponse GetMonitoringPointsNumberByPointsPositionId(int ttId)
        {
            var resp = new QueryMonitoringPointsNumberByPointsPositionIdResponse();

            try
            {
                var source = _mpnDAL.GetModelsByPointsPositionId(ttId);
                var models = source.ConvertToMonitoringTestTypeViewModelCollection();
                resp.Datas   = models;
                resp.Succeed = true;
            }
            catch (Exception ex)
            {
                resp.Message = "获取测点编号数据发生错误";
                Log(ex);
            }
            return(resp);
        }
        public int[] GetMonitoringPointsNumberIds(int mornitoringPointsPositionId)
        {
            var source = _mpnDAL.GetModelsByPointsPositionId(mornitoringPointsPositionId);

            return(source.Select(m => m.Id).ToArray());
        }