public BasicResponse <JC_AnalysisTemplateInfo> GetJC_AnalysistemplateById(AnalysisTemplateGetRequest jC_Analysistemplaterequest)
        {
            var result = _Repository.GetJC_AnalysistemplateById(jC_Analysistemplaterequest.Id);
            var jC_AnalysistemplateInfo     = ObjectConverter.Copy <JC_AnalysistemplateModel, JC_AnalysisTemplateInfo>(result);
            var jC_Analysistemplateresponse = new BasicResponse <JC_AnalysisTemplateInfo>();

            jC_Analysistemplateresponse.Data = jC_AnalysistemplateInfo;
            return(jC_Analysistemplateresponse);
        }
 public BasicResponse <JC_AnalysisTemplateInfo> GetJC_AnalysistemplateByTempleteId(AnalysisTemplateGetRequest jC_Analysistemplaterequest)
 {
     return(_analysisTemplateService.GetJC_AnalysistemplateByTempleteId(jC_Analysistemplaterequest));
 }
 public BasicResponse <List <JC_AnalysisTemplateInfo> > GetAnalysisTemplateListDetail(AnalysisTemplateGetRequest jC_Analysistemplaterequest)
 {
     return(_analysisTemplateService.GetAnalysisTemplateListDetail(jC_Analysistemplaterequest));
 }
        /// <summary>
        /// 根据模型ID查询模型列表(模型ID为空时,查询所有).
        /// </summary>
        /// <param name="jC_Analysistemplaterequest">模型ID</param>
        /// <returns>模型列表</returns>
        public BasicResponse <List <JC_AnalysisTemplateInfo> > GetAnalysisTemplateListDetail(AnalysisTemplateGetRequest jC_Analysistemplaterequest)
        {
            DataTable dataTable = _Repository.QueryTable("global_AnalysisTemplateService_GetAnalysisTemplateListDetail");

            List <JC_AnalysisTemplateInfo> listResult = ObjectConverter.Copy <JC_AnalysisTemplateInfo>(dataTable);

            var jc_AnalysisTemplateResponse = new BasicResponse <List <JC_AnalysisTemplateInfo> >();

            if (string.IsNullOrWhiteSpace(jC_Analysistemplaterequest.Id))
            {
                jc_AnalysisTemplateResponse.Data = listResult;
            }
            else
            {
                jc_AnalysisTemplateResponse.Data = listResult.Where(t => t.Id == jC_Analysistemplaterequest.Id).ToList();
            }

            return(jc_AnalysisTemplateResponse);
        }
        public BasicResponse <JC_AnalysisTemplateInfo> GetJC_AnalysistemplateByTempleteId(AnalysisTemplateGetRequest jC_Analysistemplaterequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/AnalysisTemplate/GetJC_AnalysistemplateByTempleteId?token=" + Token, JSONHelper.ToJSONString(jC_Analysistemplaterequest));

            return(JSONHelper.ParseJSONString <BasicResponse <JC_AnalysisTemplateInfo> >(responseStr));
        }