public BasicResponse <R_PhistoryInfo> GetPhistoryByPar(R_PhistoryGetByParRequest request)
        {
            var            result       = _Repository.QueryTable("global_R_PhistoryService_QueryR_PhistoryByPar", DateTime.Now.ToString("yyyyMMdd"), request.yid, request.pointid, request.rtime);
            var            resultToList = ObjectConverter.Copy <R_PhistoryInfo>(result);
            R_PhistoryInfo phistoryInfo = null;

            if (resultToList.Count > 0)
            {
                phistoryInfo = ObjectConverter.Copy <R_PhistoryInfo>(result)[0];
            }
            var phistoryresponse = new BasicResponse <R_PhistoryInfo>();

            phistoryresponse.Data = phistoryInfo;
            return(phistoryresponse);
        }
        public static R_PhistoryInfo GetR_PByPar(string pointid, string yid, DateTime rtime)
        {
            R_PhistoryInfo            item    = null;
            R_PhistoryGetByParRequest request = new R_PhistoryGetByParRequest();

            request.pointid = pointid;
            request.yid     = yid;
            request.rtime   = rtime;
            var result = r_PhistoryService.GetPhistoryByPar(request);

            if (result.IsSuccess && result.Data != null)
            {
                item = result.Data;
            }
            return(item);
        }