using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.Collections; using System.IO; namespace CY_DocumentSynchroWCFService { [ServiceContract] public interface IDocumentSynchroService { #region 有关项目标书接口 /// /// 根据Id获取项目信息 /// /// /// [OperationContract] Document_ProjectInfo GetDocument_ProjectInfo(int projectId); /// /// 获取项目扩展信息 /// /// /// [OperationContract] Document_ProjectExpand GetProjectExpand(int projectId, int unitId); /// /// 分页获取项目列表 /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// [OperationContract] IList GetProjectList(ref Pagination pagination, string Province, string City, string County, string ddlSignupStartTime, string ddlSignupEndTime, string ddlTenderStartTime, string ddlTenderEndTime, int ddlPurchaseMethod, int ddlNoticeType, string txtProjectName, string txtProjectCode, string txtPurchaseUnit, string txtAgencyUnit, string txtTenderPerson, string txtCompanyName, int ddlAdvise, int ddlSignUp, int ddlTenderDeposit, int ddlBidbond, int ddlDocumentStatus, int ddlTenderStatus, int ddlWinStatus, int ddlOppugnStatus, int ddlComplainStatus, int ddlReviewStatus, int ddlLitigationStatus, int unitId, string Experts ); [OperationContract] IList GetFinancial(ref Pagination pagination, string Province, string City, string County, string ddlSignupStartTime, string ddlSignupEndTime, string ddlTenderStartTime, string ddlTenderEndTime, string txtProjectName, string txtPurchaseUnit, string txtAgencyUnit, int ddlTenderDeposit, int ddlBidbond, int unitId); /// /// 新增项目信息 /// /// /// [OperationContract] bool InsertProjectInfo(Document_ProjectInfo projectInfo); /// /// 修改项目信息 /// /// /// [OperationContract] bool UpdateProjectInfo(Document_ProjectInfo projectInfo); /// /// 判读是否存在项目扩展信息 /// /// /// /// [OperationContract] bool IsExistProjectExpand(int projectId, int unitId); /// /// 判断是否重复项目 /// /// /// /// [OperationContract] bool IsExistProject(string projectName, string projectCode); /// /// 删除项目信息 /// /// /// [OperationContract] bool DeleteProjectInfo(int projectId); /// /// 批量删除项目信息 /// /// /// [OperationContract] bool DeleteProjectList(IList projectIdList); /// /// 保存项目扩展信息 /// /// /// [OperationContract] bool SaveProjectExpand(Document_ProjectExpand projectExpand); /// /// 获取标书信息列表 /// /// [OperationContract] IList GetDocumentList(ref Pagination pagination, string ddlTenderStartTime, string ddlTenderEndTime, string Province, string City, string County, string txtProjectName, int ddlPurchaseMethod, int unitId); /// /// 获取项目标书信息 /// /// /// /// [OperationContract] Document_ProjectDocumentInfo GetProjectDocumentInfo(int projectId, int unitId); /// /// 保存标书信息 /// /// /// [OperationContract] bool SaveProjectDocumentInfo(Document_ProjectDocumentInfo documentInfo); /// /// 删除标书信息 /// /// [OperationContract] bool DeleteDocumentModel(int projectId, int unitId); /// /// 根据名称获取项目模板 /// /// /// [OperationContract(Name = "GetTempletModelByName")] Document_DocumentTempletInfo GetTempletModel(string templetName); /// /// 根据templetId获取模板实体 /// /// /// [OperationContract(Name = "GetTempletModelById")] Document_DocumentTempletInfo GetTempletModel(int templetId); /// /// 根据projectId获取模板实体 /// /// /// [OperationContract] Document_DocumentTempletInfo GetTempletModelByProjectId(int projectId); /// /// 获取所有启用的标书模板 /// /// [OperationContract(Name = "GetDocumentTempletList")] IList GetDocumentTempletList(); /// /// 分页获取标书模板信息 /// /// [OperationContract(Name = "GetDocumentTempletListByPaging")] IList GetDocumentTempletList(ref Pagination pagination, int purchaseMethod, string templetName, int isUsed); /// /// 保存标书模板 /// /// /// [OperationContract] bool SaveTempletModel(Document_DocumentTempletInfo model); /// /// 删除标书模板 /// /// /// [OperationContract] bool DeleteTempletModel(int templetId); /// /// 根据项目ID获取其他公司投保情况列表 /// /// /// [OperationContract] IList GetOtherCompanyTenderInfoList(int projectId); /// /// 获取获取其他公司投保情况 /// /// /// /// [OperationContract] Document_OtherCompanyTenderInfo GetOtherCompanyTenderInfo(int projectId, string companyName); /// /// 保存其他公司投标情况 /// /// [OperationContract] bool SaveOtherCompanyTenderInfo(Document_OtherCompanyTenderInfo model); /// /// 删除其他公司投标情况 /// /// [OperationContract] bool DeleteOtherCompanyTenderInfo(Document_OtherCompanyTenderInfo model); /// /// 获取质疑书信息 /// /// /// [OperationContract] Document_ProjectOppugnInfo GetProjectOppugnInfo(int projectId, int unitId); /// /// 保存项目质疑信息 /// /// /// [OperationContract] bool SaveProjectOppugnInfo(Document_ProjectOppugnInfo oppugnInfo); /// /// 获取投诉书信息 /// /// /// [OperationContract] Document_ProjectComplainInfo GetProjectComplainInfo(int projectId, int unitId); /// /// 保存项目投诉信息 /// /// /// [OperationContract] bool SaveProjectComplainInfo(Document_ProjectComplainInfo complainInfo); /// /// 获取行政复议书 /// /// /// [OperationContract] Document_ProjectReviewInfo GetProjectReviewInfo(int projectId, int unitId); /// /// 保存行政复议书 /// /// /// [OperationContract] bool SaveProjectReviewInfo(Document_ProjectReviewInfo reviewInfo); /// /// 获取行政诉讼书 /// /// /// [OperationContract] Document_ProjectLitigationInfo GetProjectLitigationInfo(int projectId, int unitId); /// /// 保存行政诉讼 /// /// /// [OperationContract] bool SaveProjectLitigationInfo(Document_ProjectLitigationInfo litigationInfo); /// /// 获取建议书 /// /// /// /// [OperationContract] Document_AdviseInfo GetProjectAdviseInfo(int projectId, int unitId); /// /// 保存建议书 /// /// /// [OperationContract] bool SaveProjectAdviseInfo(Document_AdviseInfo adviseInfo); [OperationContract] Document_ProjectOppugnInfo GetDocument_ProjectOppugnInfo(int projectId, int unitId); [OperationContract] Document_ProjectComplainInfo GetDocument_ProjectComplainInfo(int projectId, int unitId); [OperationContract] Document_ProjectReviewInfo GetDocument_ProjectReviewInfo(int projectId, int unitId); [OperationContract] Document_ProjectLitigationInfo GetDocument_ProjectLitigationInfo(int projectId, int unitId); [OperationContract] Document_WinInfo GetDocument_WinInfo(int projectId, int unitId); [OperationContract] bool SaveDocument_ProjectOppugnInfo(Document_ProjectOppugnInfo trueModel); [OperationContract] bool SaveDocument_ProjectComplainInfo(Document_ProjectComplainInfo trueModel); [OperationContract] bool SaveDocument_ProjectReviewInfo(Document_ProjectReviewInfo trueModel); [OperationContract] bool SaveDocument_ProjectLitigationInfo(Document_ProjectLitigationInfo trueModel); [OperationContract] bool SaveDocument_WinInfo(Document_WinInfo trueModel); /// /// 保存文件版本 /// /// /// [OperationContract] bool SaveSynchroInfo(string typeName); /// /// 根据现在版本获取新版本号 /// /// /// [OperationContract] string GetNewVersionNo(string oldVersionNo); #endregion #region 系统设置接口 /// /// 获取有效的投标单位 /// /// [OperationContract] IList GetTenderUnitList(ref Pagination pagination, string _UnitName, int _IsUsed); /// /// 获取投标单位信息 /// /// /// [OperationContract] Document_TenderUnit GetTenderUnit(int unitId); /// /// 保存投标单位信息 /// /// /// [OperationContract] bool SaveTenderUnit(Document_TenderUnit tenderUnit); /// /// 保存资质 /// /// /// [OperationContract] bool SaveAptitudeInfo(Document_AptitudeInfo aptitudeInfo); /// /// 获取最新的ID /// /// [OperationContract] int GetDocument_AptitudeTypeNewId(); /// /// 获取最新的排序值 /// /// /// [OperationContract] int GetDocument_AptitudeTypeNewOrderItem(string dicType); /// /// 保存数据 /// /// [OperationContract] bool SaveDocument_AptitudeType(Document_AptitudeType m_Document_AptitudeType); /// /// 删除数据类别 /// /// [OperationContract] bool Del_Document_AptitudeType(int Id); /// /// 获取分页列表 /// /// /// /// /// /// [OperationContract] List GetDocument_AptitudeTypeList(ref Pagination pagination, string txtType, string txtName); /// /// 根据名称查询数据 /// /// /// [OperationContract] Document_AptitudeType GetDocument_AptitudeTypeByName(string Name); /// /// 根据ID查询数据 /// /// /// [OperationContract] Document_AptitudeType GetDocument_AptitudeTypeById(int? Id); /// /// 删除资质 /// /// /// [OperationContract] bool DelAptitudeInfo(int AptitudeId); /// /// 分页获取资质列表 /// /// /// /// /// /// /// /// /// /// [OperationContract] IList GetAptitudeInfoList(ref Pagination pagination, string txtAptitudeName, int txtAptitudeType, int txtIsUse, int _UnitId); /// /// 根据aptitudeId获取资质信息 /// /// /// [OperationContract] Document_AptitudeInfo GetAptitudeInfo(int aptitudeId); /// /// 根据aptitudeName获取资质信息 /// /// /// [OperationContract(Name = "GetAptitudeInfoByName1")] Document_AptitudeInfo GetAptitudeInfoByName(string aptitudeName, string _UnitId); /// /// 根据资质名称查询数据 /// /// /// /// [OperationContract(Name = "GetAptitudeInfoByName2")] Document_AptitudeInfo GetAptitudeInfoByName(string aptitudeName, int aptitudeTypeId); /// /// 根据资质类型得到资质列表 /// /// /// [OperationContract] IList GetAptitudeListByType(int aptitudeType, int _UnitId); /// /// 根据类型获取其下的所有资质 /// /// /// [OperationContract] IList GetFileInfoListByType(int aptitudeType); /// /// 根据资质ID获取资质文件列表 /// /// /// [OperationContract] IList GetFileInfoByAptitudeId(int aptitudeId); /// /// 获取项目下的身份证列表 /// /// /// /// [OperationContract] IList GetSFZList(int projectId, int unitid, int aptitudeId = 0); /// /// 保存通用文件 /// /// /// [OperationContract] bool SaveCommonFile(Document_CommonFile commonFile); /// /// 删除通用文件 /// /// /// [OperationContract] bool DeleteCommonFile(int Id); /// /// 获取分页通用文件列表 /// /// /// /// /// /// /// /// [OperationContract] IList GetCommonFileList(ref Pagination pagination, string fileName, int isUse); /// /// 根据Id获取公开招标实体 /// /// /// [OperationContract] Document_CommonFile GetCommonFileModel(int Id); /// /// 获取有效的通用文件列表 /// /// /// [OperationContract] IList GetModelListByUse(string fileName = ""); /// /// 保存员工 /// /// /// /// /// /// [OperationContract] bool SaveEmployee(Document_EmployeeInfo project, bool IsBMR, bool IsBSZZR, bool IsTBR); /// /// 删除员工 /// /// [OperationContract] bool DeleteEmployee(int employeeId); /// /// 获取分页列表 /// /// /// /// /// /// [OperationContract] IList GetEmployeeList(ref Pagination pagination, string txtName,int type); /// /// 根据名称获取列表 /// /// /// [OperationContract] IList GetEmployeeListByName(string txtName); /// /// 获取在职员工列表(离职0,在职1,全部-1)(全部0,报名人1,标书制作人2,投标人3) /// /// (离职0,在职1,全部-1) /// (全部0,报名人1,标书制作人2,投标人3) /// [OperationContract] IList GetEmployeeListByStatus(int isWork, int Role); /// /// 根据Id获取实体信息 /// /// /// [OperationContract] Document_EmployeeInfo GetDocument_EmployeeInfoInfo(int employeeId); /// /// 根据姓名查询数据 /// /// /// [OperationContract] Document_EmployeeInfo GetDocument_EmployeeInfoByName(string EmployeeName); /// /// 获取登录帐号获取员工 /// /// /// [OperationContract] Document_EmployeeInfo GetDocument_EmployeeInfoByLoginName(string UserName); /// /// 获取登录帐号和密码获取元宝 /// /// /// [OperationContract] Document_EmployeeInfo GetDocument_EmployeeInfoByLogin(string UserName, string UserPassWord); /// /// 根据Id获取员工角色实体信息 /// /// /// [OperationContract] Document_EmployeeRole GetDocument_EmployeeRole(int employeeId, int RoleType); /// /// 获取新增员工 /// /// /// [OperationContract] Document_EmployeeInfo GetMaxIdDocument_EmployeeInfoInfo(); /// /// 是否存在相同的委托代理人 /// /// /// [OperationContract] bool ExistsDelegateName(string delegateName); /// /// 获取所有有效的委托代理人列表 /// /// [OperationContract] IList GetAllDelegatePerson(); /// /// 获取委托代理人实体 /// /// /// [OperationContract] Document_DelegatePersonInfo GetDocument_DelegatePersonInfo(int delegateId); /// /// 分页获取委托代理人列表 /// /// /// /// /// /// /// /// [OperationContract] IList GetDelegatePersonList(ref Pagination pagination, string delegateName, int isUse); /// /// 保存委托代理人 /// /// /// [OperationContract] bool SaveDelegatePerson(Document_DelegatePersonInfo model); /// /// 删除委托代理人 /// /// /// [OperationContract] bool DelDelegatePerson(int delegateId); /// /// 获取分页列表 /// /// /// /// /// /// /// /// /// [OperationContract] IList GetLayInfoList(ref Pagination pagination, string txtLayType, string txtLayProvince, string txtLayName); /// /// 获取法律实体 /// /// /// [OperationContract] Document_LayInfo GetLayInfo(int layId); /// /// 保存法律实体 /// /// /// [OperationContract] bool SaveLayInfo(Document_LayInfo model); /// /// 删除数据类别 /// /// [OperationContract] bool DelLayInfo(int id); /// /// 根据名称查询数据 /// /// /// [OperationContract] Document_LayInfo GetDocument_LayInfoByName(string LayName); #endregion #region 配置接口 /// /// 根据类型获取字典表数据 /// /// /// [OperationContract] IList GetDictionaryList(string dicType); /// /// 根据Id获取其字典表信息 /// /// /// [OperationContract] Document_Dictionary GetDictionaryById(int id); /// /// 获得省列表 /// /// [OperationContract] IList GetProvinceList(); /// /// 根据省获取市列表 /// /// /// [OperationContract] IList GetCityList(int provinceId); /// /// 根据市获取区列表 /// /// /// [OperationContract] IList GetCountryList(int cityId); /// /// 获取省市区对应的编号 /// /// /// /// /// [OperationContract] int GetKeyid(string name, int provinceId, int cityId); /// /// 获取上一级单位 /// /// /// [OperationContract] string GetPreUnit(string childName); /// /// 根据keyId获取实体 /// /// /// [OperationContract] Sys_CitySite GetModelById(int keyId); /// /// 根据全称获取简称 /// /// /// [OperationContract] string GetProNameByFullName(string FullName); /// /// 根据Id获取其工作提醒信息 /// /// /// [OperationContract] Document_WorkRemind GetDocument_WorkRemindById(int id); /// /// 新增数据 /// /// [OperationContract] bool SaveDocument_WorkRemind(Document_WorkRemind m_Document_WorkRemind); /// /// 删除数据类别 /// /// [OperationContract] bool Del_Document_WorkRemind(int Id); /// /// 获取分页列表 /// /// /// /// /// /// /// [OperationContract] List GetDocument_WorkRemindList(ref Pagination pagination, DateTime? StartTime, DateTime? EndTime, string txtProjectName, string txtWorkRemindContent); /// /// 根据Id获取其法律法规信息 /// /// /// [OperationContract] Document_PerformanceInfo GetDocument_PerformanceInfoById(int id); /// /// 保存数据 /// /// [OperationContract] bool SaveDocument_PerformanceInfo(Document_PerformanceInfo m_Document_PerformanceInfo); /// /// 获取分页列表 /// /// /// /// /// /// /// /// /// [OperationContract] IList GetDocument_PerformanceInfoList(string txtWorkStartTime, string txtWorkEndTime, string txtEmployeeId, string projectName, string txtWorkItem, out decimal AllPageMoney); /// /// 获取分页列表 /// /// /// /// /// /// /// /// /// /// [OperationContract] IList GetDocument_PerformanceInfoListByPaper(ref Pagination pagination, string txtWorkStartTime, string txtWorkEndTime, string txtEmployeeId, string projectName, string txtWorkItem, out decimal NowPageMoney, out decimal AllPageMoney); /// /// 获取服务端版本 /// /// /// [OperationContract] Sys_Update GetSys_Update(); /// /// 修改服务端版本 /// /// /// [OperationContract] bool SaveSys_Update(Sys_Update trueModel); /// /// 执行SQL /// /// [OperationContract] bool ExcuSQL(string SQL); /// /// 执行更新服务端 /// /// [OperationContract] void FrmUpdate_Load(); #endregion #region 注册用户 /// /// 注册用户,返回用户信息 /// /// /// /// [OperationContract] bool RegisteUser(string userName, ref Document_UserInfo userInfo); #endregion [OperationContract] IList GetTestListByName(string txtName); } }