private List <QuotationDto> QuotationGenSearch(RequiremetMstDto mstDto, string quotationType) { if (quotationType == "Zhixing") { return(quotationService.QuotationGenSearch_Zhixing(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Fuhe") { return(quotationService.QuotationGenSearch_Fuhe(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Biancheng") { return(quotationService.QuotationGenSearch_Biancheng(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Yanjiu") { return(quotationService.QuotationGenSearch_Yanjiu(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Zhichi") { var lst1 = quotationService.QuotationGenSearch_Zhichi01(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>(); var lst2 = quotationService.QuotationGenSearch_Zhichi02(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>(); lst1.AddRange(lst2); return(lst1); } else if (quotationType == "Qita1") { return(quotationService.QuotationGenSearch_Qita1(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Qita2") { return(quotationService.QuotationGenSearch_Qita2(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (quotationType == "Chezhan") { var lst1 = quotationService.QuotationGenSearch_Chenzhan01(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>(); var lst2 = quotationService.QuotationGenSearch_Chenzhan02(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>(); var lst3 = quotationService.QuotationGenSearch_Chenzhan02(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>(); lst1.AddRange(lst2); lst1.AddRange(lst3); return(lst1); } else { if (mstDto.RequirementType == "Youxingshangpincaigou") { return(quotationService.QuotationGenSearch_Qita1(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } else if (mstDto.RequirementType == "Wuxingshangpincaigou") { return(quotationService.QuotationGenSearch_Qita2(mstDto.ProjectId, mstDto.SeqNO, mstDto.RequirementType, mstDto.RequirementId).ToList <QuotationDto>()); } } return(new List <QuotationDto>()); }