/// <summary> /// 批量删除 /// </summary> /// <param name="jC_Analysistemplaterequest">模型ID</param> /// <returns></returns> public BasicResponse DeleteJC_AnalyticalexpressionByTempleteId(AnalyticalExpressionGetListRequest jC_Analysistemplaterequest) { var getAnalysisTemplateListByTempleteIdData = GetAnalysisTemplateListByTempleteId(jC_Analysistemplaterequest).Data; var _jC_Analyticalexpression = ObjectConverter.CopyList <JC_AnalyticalExpressionInfo, JC_AnalyticalexpressionModel>(getAnalysisTemplateListByTempleteIdData); _Repository.Delete(_jC_Analyticalexpression.ToList()); var jC_Analyticalexpressionresponse = new BasicResponse(); return(jC_Analyticalexpressionresponse); }
public BasicResponse DeleteJC_AnalyticalexpressionByTempleteId(AnalyticalExpressionGetListRequest jC_Analysistemplaterequest) { var responseStr = HttpClientHelper.Post(Webapi + "/v1/AnalyticalExpression/DeleteJC_AnalyticalexpressionByTempleteId?token=" + Token, JSONHelper.ToJSONString(jC_Analysistemplaterequest)); return(JSONHelper.ParseJSONString <BasicResponse>(responseStr)); }
public BasicResponse DeleteJC_AnalyticalexpressionByTempleteId(AnalyticalExpressionGetListRequest jC_Analysistemplaterequest) { return(_analysisExpressionService.DeleteJC_AnalyticalexpressionByTempleteId(jC_Analysistemplaterequest)); }
public BasicResponse <List <JC_AnalyticalExpressionInfo> > GetAnalysisTemplateListByTempleteId(AnalyticalExpressionGetListRequest jC_Analysistemplaterequest) { return(_analysisExpressionService.GetAnalysisTemplateListByTempleteId(jC_Analysistemplaterequest)); }
public BasicResponse <List <JC_AnalyticalExpressionInfo> > GetJC_AnalyticalexpressionList(AnalyticalExpressionGetListRequest jC_Analyticalexpressionrequest) { return(_analysisExpressionService.GetJC_AnalyticalexpressionList(jC_Analyticalexpressionrequest)); }
/// <summary> /// 根据模板ID 查询表达式信息 /// </summary> /// <param name="jC_Analysistemplaterequest">模型ID</param> /// <returns>模型列表</returns> public BasicResponse <List <JC_AnalyticalExpressionInfo> > GetAnalysisTemplateListByTempleteId(AnalyticalExpressionGetListRequest jC_Analysistemplaterequest) { DataTable dataTable = _Repository.QueryTable("global_AnalyticalExpressionService_GetAnalyticalExpressionListByTempleteId", jC_Analysistemplaterequest.TempleteId); List <JC_AnalyticalExpressionInfo> listResult = ObjectConverter.Copy <JC_AnalyticalExpressionInfo>(dataTable); var jC_AnalyticalExpressionresponse = new BasicResponse <List <JC_AnalyticalExpressionInfo> >(); jC_AnalyticalExpressionresponse.Data = listResult; return(jC_AnalyticalExpressionresponse); }
public BasicResponse <List <JC_AnalyticalExpressionInfo> > GetJC_AnalyticalexpressionList(AnalyticalExpressionGetListRequest jC_Analyticalexpressionrequest) { var jC_Analyticalexpressionresponse = new BasicResponse <List <JC_AnalyticalExpressionInfo> >(); jC_Analyticalexpressionrequest.PagerInfo.PageIndex = jC_Analyticalexpressionrequest.PagerInfo.PageIndex - 1; if (jC_Analyticalexpressionrequest.PagerInfo.PageIndex < 0) { jC_Analyticalexpressionrequest.PagerInfo.PageIndex = 0; } int rowcount = 0; var jC_AnalyticalexpressionModelLists = _Repository.GetJC_AnalyticalexpressionList(jC_Analyticalexpressionrequest.PagerInfo.PageIndex, jC_Analyticalexpressionrequest.PagerInfo.PageSize, out rowcount); var jC_AnalyticalexpressionInfoLists = new List <JC_AnalyticalExpressionInfo>(); foreach (var item in jC_AnalyticalexpressionModelLists) { var JC_AnalyticalExpressionInfo = ObjectConverter.Copy <JC_AnalyticalexpressionModel, JC_AnalyticalExpressionInfo>(item); jC_AnalyticalexpressionInfoLists.Add(JC_AnalyticalExpressionInfo); } jC_Analyticalexpressionresponse.Data = jC_AnalyticalexpressionInfoLists; return(jC_Analyticalexpressionresponse); }