public BasicResponse <List <JC_AnalysisTemplateConfigInfo> > GetJC_AnalysistemplateconfigList(AnalysisTemplateConfigGetListRequest jC_Analysistemplateconfigrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/AnalysisTemplateConfig/GetJC_AnalysistemplateconfigList?token=" + Token, JSONHelper.ToJSONString(jC_Analysistemplateconfigrequest));

            return(JSONHelper.ParseJSONString <BasicResponse <List <JC_AnalysisTemplateConfigInfo> > >(responseStr));
        }
Beispiel #2
0
        public BasicResponse <List <JC_AnalysisTemplateConfigInfo> > GetJC_AnalysistemplateconfigList(AnalysisTemplateConfigGetListRequest jC_Analysistemplateconfigrequest)
        {
            var jC_Analysistemplateconfigresponse = new BasicResponse <List <JC_AnalysisTemplateConfigInfo> >();

            jC_Analysistemplateconfigrequest.PagerInfo.PageIndex = jC_Analysistemplateconfigrequest.PagerInfo.PageIndex - 1;
            if (jC_Analysistemplateconfigrequest.PagerInfo.PageIndex < 0)
            {
                jC_Analysistemplateconfigrequest.PagerInfo.PageIndex = 0;
            }
            int rowcount = 0;
            var jC_AnalysistemplateconfigModelLists = _Repository.GetJC_AnalysistemplateconfigList(jC_Analysistemplateconfigrequest.PagerInfo.PageIndex, jC_Analysistemplateconfigrequest.PagerInfo.PageSize, out rowcount);
            var jC_AnalysistemplateconfigInfoLists  = new List <JC_AnalysisTemplateConfigInfo>();

            foreach (var item in jC_AnalysistemplateconfigModelLists)
            {
                var JC_AnalysisTemplateConfigInfo = ObjectConverter.Copy <JC_AnalysistemplateconfigModel, JC_AnalysisTemplateConfigInfo>(item);
                jC_AnalysistemplateconfigInfoLists.Add(JC_AnalysisTemplateConfigInfo);
            }
            jC_Analysistemplateconfigresponse.Data = jC_AnalysistemplateconfigInfoLists;
            return(jC_Analysistemplateconfigresponse);
        }
Beispiel #3
0
 public BasicResponse <List <JC_AnalysisTemplateConfigInfo> > GetJC_AnalysistemplateconfigList(AnalysisTemplateConfigGetListRequest jC_Analysistemplateconfigrequest)
 {
     return(_AnalysisTemplateConfigService.GetJC_AnalysistemplateconfigList(jC_Analysistemplateconfigrequest));
 }