using DocumentServiceAPI.Application.ProjectInfo.Services; using DocumentServiceAPI.Application.ProjectInfo.Services.Interfaces; using DocumentServiceAPI.Application.ProjectInfo.ViewMode; using DocumentServiceAPI.Application.WorkRemind.Services; using DocumentServiceAPI.Application.WorkRemind.Services.Interfaces; using DocumentServiceAPI.Application.WorkRemind.ViewMode; using DocumentServiceAPI.Model.cyDocumentModel; using DocumentServiceAPI.Utility; using Microsoft.AspNetCore.Mvc.RazorPages; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DocumentServiceAPI.Application.ProjectInfo { /// /// 登录控制器 /// [ApiDescriptionSettings("ProjectInfo")] [DynamicApiController] [Authorize] public class ProjectInfoController { private readonly IProjectInfoService _projectInfoService; public ProjectInfoController(IProjectInfoService projectInfoService) { _projectInfoService = projectInfoService; } /// /// 创建项目 /// /// /// public bool InProjectInfo(DocumentProjectInfoDTO dw) { return _projectInfoService.InProjectInfo(dw); } /// /// 项目是否存在 /// /// /// /// public bool GetIsExistProject(string ProjectName, string ProjectCode) { return _projectInfoService.IsExistProject(ProjectName, ProjectCode); } /// /// 根据url获取网页内容 /// /// /// [AllowAnonymous] public Document_ProjectInfo ProjectInfoByUrl(Document_ProjectInfo dp) { return _projectInfoService.ProjectInfoByUrl(dp); } /// /// 获取项目列表 /// /// /// public PageResult postProjectInfoList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postProjectInfoList(page); } /// /// 删除项目列表 /// /// /// public bool DelProjectInfoByIds(List projectIdList) { return _projectInfoService.DelProjectInfoByIds(projectIdList); } /// /// 获取项目详情 /// /// /// public DocumentProjectInfoDTO GetProjectInfo(int ID, int TenantID) { return _projectInfoService.GetProjectInfo(ID, TenantID); } /// /// 获取项目ProjectExpand /// /// /// public Document_ProjectExpand GetProjectExpand(int ID, int UnitId) { return _projectInfoService.GetProjectExpand(ID , UnitId); } /// /// 获取项目GetDocument_WinInfo /// /// /// public Document_WinInfo GetDocument_WinInfo(int ID, int UnitId) { return _projectInfoService.GetDocument_WinInfo(ID, UnitId); } /// /// 获取项目GetDocument_AdviseInfo /// /// /// public Document_AdviseInfo GetDocument_AdviseInfo(int ID, int UnitId) { return _projectInfoService.GetDocument_AdviseInfo(ID, UnitId); } /// /// 获取项目GetProjectOppugnInfo /// /// /// public Document_ProjectOppugnInfo GetProjectOppugnInfo(int ID, int UnitId) { return _projectInfoService.GetProjectOppugnInfo(ID, UnitId); } /// /// 获取项目GetProjectComplainInfo /// /// /// public Document_ProjectComplainInfo GetProjectComplainInfo(int ID, int UnitId) { return _projectInfoService.GetProjectComplainInfo(ID, UnitId); } /// /// 获取项目GetProjectReviewInfo /// /// /// public Document_ProjectReviewInfo GetProjectReviewInfo(int ID, int UnitId) { return _projectInfoService.GetProjectReviewInfo(ID, UnitId); } /// /// 获取项目GetProjectLitigationInfo /// /// /// public Document_ProjectLitigationInfo GetProjectLitigationInfo(int ID, int UnitId) { return _projectInfoService.GetProjectLitigationInfo(ID, UnitId); } /// /// 获取项目GetOtherCompanyTenderInfoList /// /// /// public List GetOtherCompanyTenderInfoList(int ID, int TenantID) { return _projectInfoService.GetOtherCompanyTenderInfoList( ID , TenantID); } /// /// 修改项目 /// /// /// public bool SaveProjectInfo(Document_ProjectInfo dp) { return _projectInfoService.UpdateProjectInfo(dp); } /// /// 修改项目SaveDocumentWinInfo /// /// /// public bool SaveDocumentWinInfo(Document_WinInfo dp) { return _projectInfoService.SaveDocumentWinInfo(dp); } /// /// 修改项目SaveDocumentProjectExpand /// /// /// public bool SaveDocumentProjectExpand(Document_ProjectExpand dp) { return _projectInfoService.SaveDocumentProjectExpand(dp); } /// /// 获取项目GetOtherCompanyTenderInfo /// /// /// public Document_OtherCompanyTenderInfo GetOtherCompanyTenderInfo(int ID, string companyName) { return _projectInfoService.GetOtherCompanyTenderInfo(ID, companyName); } /// /// 删除项目DelOtherCompanyTenderInfo /// /// /// public bool GetDelOtherCompanyTenderInfo(int Id) { return _projectInfoService.DelOtherCompanyTenderInfo(Id); } /// /// 修改项目SaveOtherCompanyTenderInfo /// /// /// public bool SaveOtherCompanyTenderInfo(Document_OtherCompanyTenderInfo dp) { return _projectInfoService.SaveOtherCompanyTenderInfo(dp); } /// /// 获取项目GetTenderUnit /// /// public Document_TenderUnit GetTenderUnit(int ID) { return _projectInfoService.GetTenderUnit(ID ); } /// /// 获取单个员工,根据employeeId /// /// public Document_EmployeeInfo GetDocument_EmployeeInfoByName(string EmployeeName) { return _projectInfoService.GetDocument_EmployeeInfoByName(EmployeeName); } /// /// 获取项目GetDocument_EmployeeInfoInfo /// /// public Model.cyDocumentModel.Document_EmployeeInfo GetDocument_EmployeeInfoInfo(int ID) { return _projectInfoService.GetDocument_EmployeeInfoInfo(ID); } /// /// 获取项目GetAptitudeInfoByName /// /// /// public List GetAptitudeInfoByUnitId(int UnitId) { return _projectInfoService.GetAptitudeInfoByUnitId(UnitId); } /// /// 删除项目GetDeleteDocumentModel /// /// /// /// public bool GetDeleteDocumentModel(int projectId, int unitId) { return _projectInfoService.GetDeleteDocumentModel(projectId, unitId); } /// /// 获取项目GetProjectDocumentInfo /// /// /// public Document_ProjectDocumentInfo GetProjectDocumentInfo(int projectId, int unitId) { return _projectInfoService.GetProjectDocumentInfo(projectId, unitId); } /// /// 获取标书列表postDocumentList /// /// /// public PageResult postDocumentList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postDocumentList(page); } /// /// 修改项目SaveDocumentProjectDocumentInfo /// /// /// public bool SaveDocumentProjectDocumentInfo(Document_ProjectDocumentInfo dp) { return _projectInfoService.SaveDocumentProjectDocumentInfo(dp); } /// /// 获取项目GetDelegatePersonInfo /// /// public Document_DelegatePersonInfo GetDelegatePersonInfo(int ID) { return _projectInfoService.GetDelegatePersonInfo(ID); } /// /// 修改项目SaveDocumentProjectOppugnInfo /// /// /// public bool SaveDocumentProjectOppugnInfo(Document_ProjectOppugnInfo dp) { return _projectInfoService.SaveDocumentProjectOppugnInfo(dp); } /// /// 获取项目GetAllDelegatePerson /// public List GetAllDelegatePerson() { return _projectInfoService.GetAllDelegatePerson(); } /// /// 修改项目SaveDocumentProjectComplainInfo /// /// /// public bool SaveDocumentProjectComplainInfo(Document_ProjectComplainInfo dp) { return _projectInfoService.SaveDocumentProjectComplainInfo(dp); } /// /// 修改项目SaveDocumentProjectReviewInfo /// /// /// public bool SaveDocumentProjectReviewInfo(Document_ProjectReviewInfo dp) { return _projectInfoService.SaveDocumentProjectReviewInfo(dp); } /// /// 查询项目GetPreUnit /// /// /// public string GetPreUnit(string childName) { return _projectInfoService.GetPreUnit(childName); } /// /// 修改项目SaveDocumentProjectLitigationInfo /// /// /// public bool SaveDocumentProjectLitigationInfo(Document_ProjectLitigationInfo dp) { return _projectInfoService.SaveDocumentProjectLitigationInfo(dp); } /// /// 修改项目SaveDocumentAdviseInfo /// /// /// public bool SaveDocumentAdviseInfo(Document_AdviseInfo dp) { return _projectInfoService.SaveDocumentAdviseInfo(dp); } /// /// 获取项目GetTempletModel /// /// public Document_DocumentTempletInfo GetTempletModel(int templetId) { return _projectInfoService.GetTempletModel(templetId); } /// /// 获取项目GetDocumentTempletList /// public List GetDocumentTempletList() { return _projectInfoService.GetDocumentTempletList(); } /// /// 获取招标文件列表postDocumentZhaobiaoFileList /// /// /// public PageResult postDocumentZhaobiaoFileList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postDocumentZhaobiaoFileList(page); } /// /// 修改招标文件SaveDocumentZhaobiaoFileInfo /// /// /// public bool SaveDocumentZhaobiaoFileInfo(Document_ZhaobiaoFile dp) { return _projectInfoService.SaveDocumentZhaobiaoFileInfo(dp); } /// /// 删除项目GetDeleteDocumentZhaobiaoFile /// /// /// public bool GetDeleteDocumentZhaobiaoFile(int ID) { return _projectInfoService.GetDeleteDocumentZhaobiaoFile(ID); } /// /// 获取项目GetDocumentZhaobiaoFileInfo /// /// public Document_ZhaobiaoFile GetDocumentZhaobiaoFileInfo(int ID) { return _projectInfoService.GetDocumentZhaobiaoFileInfo(ID); } /// /// 获取响应文件列表postDocumentTBXYFileList /// /// /// public PageResult postDocumentTBXYFileList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postDocumentTBXYFileList(page); } /// /// 修改响应文件SaveDocumentTBXYFileInfo /// /// /// public bool SaveDocumentTBXYFileInfo(Document_TBXYFile dp) { return _projectInfoService.SaveDocumentTBXYFileInfo(dp); } /// /// 删除响应文件GetDeleteDocumentTBXYFile /// /// /// public bool GetDeleteDocumentTBXYFile(int ID) { return _projectInfoService.GetDeleteDocumentTBXYFile(ID); } /// /// 获取响应文件GetDocumentTBXYFileInfo /// /// public Document_TBXYFile GetDocumentTBXYFileInfo(int ID) { return _projectInfoService.GetDocumentTBXYFileInfo(ID); } /// /// 获取响应文件GetDocumentTBXYFileInfo /// /// public List GetDocumentTBXYFileList(int projectId, int unitId) { return _projectInfoService.GetDocumentTBXYFileList(projectId, unitId); } /// /// 获取响应文件GetDocumentTBXYFileInfo /// /// public Document_TBXYFile GetDocumentTBXYFileByFileName(int projectId, int unitId, string FileName) { return _projectInfoService.GetDocumentTBXYFileByFileName(projectId, unitId, FileName); } /// /// 修改响应文件SaveDocumentTBXYFileInfo /// /// /// int public int SaveDocInfo(Doc_Info dp) { return _projectInfoService.SaveDocInfo(dp); } /// /// 修改响应文件SaveDocumentTBXYFileInfo /// /// /// public bool SaveFileInfo(File_Info dp) { return _projectInfoService.SaveFileInfo(dp); } /// /// 获取方案类别GetOtherCompanyTenderInfoList /// public List GetDocClassificationList() { return _projectInfoService.GetDocClassificationList(); } /// /// 获取分类列表postDocClassificationList /// /// /// public PageResult postDocClassificationList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postDocClassificationList(page); } /// /// 获取分类GetDocClassificationInfo /// /// /// public Doc_Classification GetDocClassificationInfo(int ID) { return _projectInfoService.GetDocClassificationInfo(ID); } /// /// 删除系统分类删除GetDeleteDocClassDel /// /// /// /// public bool GetDeleteDocClassDel(int ID, int tenantId) { return _projectInfoService.GetDeleteDocClassDel(ID, tenantId); } /// ///删除分类GetDeleteDocClassification /// /// /// public bool GetDeleteDocClassification(int ID) { return _projectInfoService.GetDeleteDocClassification(ID); } /// /// 保存系统分类SaveDocClassDelInfo /// /// /// public bool SaveDocClassificationInfo(Doc_Classification dp) { return _projectInfoService.SaveDocClassificationInfo(dp); } /// /// 保存系统分类删除SaveDocClassDelInfo /// /// /// public bool SaveDocClassDelInfo(Doc_ClassDel dp) { return _projectInfoService.SaveDocClassDelInfo(dp); } /// /// 获取分类列表GetDocClassificationList /// /// /// public List GetDocClassificationList(int tenantId) { return _projectInfoService.GetDocClassificationList(tenantId); } /// /// 获取分类GetDocClassificationByFileName /// /// /// /// /// public Doc_Classification GetDocClassificationByFileName(int tenantId, string FileName, string parent_code) { return _projectInfoService.GetDocClassificationByFileName(tenantId, FileName, parent_code); } /// /// 获取最新分类编码 /// /// /// /// public Doc_Classification GetDocClassificationcode(int tenantId, string parent_code) { return _projectInfoService.GetDocClassificationcode(tenantId, parent_code); } /// /// 获取最大排序 /// /// /// /// public Doc_Classification GetDocClassificationInfoMaxSortId(int tenantId, string docclassificationcode) { return _projectInfoService.GetDocClassificationInfoMaxSortId(tenantId, docclassificationcode); } /// /// 获取最大排序 /// /// /// /// public Doc_Classification GetDocumentInfoMaxSortId(int unitId, string doccode) { return _projectInfoService.GetDocumentInfoMaxSortId(unitId, doccode); } /// /// 获取最大排序 /// /// /// public Doc_Classification GetAchievementInfoMaxSortId(int unitId) { return _projectInfoService.GetAchievementInfoMaxSortId(unitId); } /// /// 获取最大排序 /// /// /// public Doc_Classification GetShebeinengliInfoMaxSortId(int unitId) { return _projectInfoService.GetShebeinengliInfoMaxSortId(unitId); } /// /// 获取分类列表postDocumentTempletList /// /// /// public PageResult postDocumentTempletList(DocumentProjectInfoPageSearch page) { return _projectInfoService.postDocumentTempletList(page); } /// ///删除分类GetDeleteDocumentTempletInfo /// /// /// public bool GetDeleteDocumentTempletInfo(int ID) { return _projectInfoService.GetDeleteDocumentTempletInfo(ID); } /// /// 保存Document_DocumentTempletInfo /// /// /// public bool SaveDocumentTempletInfo(Document_DocumentTempletInfo dp) { return _projectInfoService.SaveDocumentTempletInfo(dp); } /// /// 获取项目GetTempletModelByProjectId /// /// public Document_DocumentTempletInfo GetTempletModelByProjectId(int projiectid) { return _projectInfoService.GetTempletModelByProjectId(projiectid); } } }