using BLL; using Model; using System; using System.Collections.Generic; using System.Web.Http; namespace WebAPI.Controllers { /// /// 质量计划 /// public class CQMSPlanController : ApiController { /// /// 根据项目id获取总包质量计划列表集合 /// /// /// /// /// [HttpGet] public ResponseData> getMainPlanList(string projectId, int index, int page) { ResponseData> res = new ResponseData>(); res.successful = true; res.resultValue = BLL.CQMS_MainPlanService.getListDataForApi(projectId, index, page); return res; } /// /// 根据项目id获取分包质量计划列表集合 /// /// /// /// /// [HttpGet] public ResponseData> getSubPlanList(string projectId, int index, int page) { ResponseData> res = new ResponseData>(); res.successful = true; res.resultValue = BLL.CQMS_SubPlanService.getListDataForApi(projectId, index, page); return res; } /// /// 根据id获取总包质量计划详情 /// /// /// [HttpGet] public ResponseData GetMainPlanByMainPlanId(string id) { ResponseData res = new ResponseData(); Plan_MainPlan cd = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanIdForApi(id); res.successful = true; res.resultValue = BeanUtil.CopyOjbect(cd, true); return res; } /// /// 根据id获取分包质量计划详情 /// /// /// [HttpGet] public ResponseData GetSubPlanBySubPlanId(string id) { ResponseData res = new ResponseData(); Plan_SubPlan cd = BLL.CQMS_SubPlanService.GetSubPlanBySubPlanIdForApi(id); res.successful = true; res.resultValue = BeanUtil.CopyOjbect(cd, true); return res; } /// /// 根据id获取总包质量计划审批明细 /// /// /// [HttpGet] public ResponseData> GetMainPlanApproveById(string id) { ResponseData> res = new ResponseData>(); res.successful = true; res.resultValue = BLL.CQMS_MainPlanApproveService.getApproveListDataByIdForApi(id); return res; } /// /// 根据id获取分包质量计划审批明细 /// /// /// [HttpGet] public ResponseData> GetSubPlanApproveById(string id) { ResponseData> res = new ResponseData>(); res.successful = true; res.resultValue = BLL.CQMS_SubPlanApproveService.getApproveListDataByIdForApi(id); return res; } } }