public ActionResult GetProjectAmt(string projectId) { //SettlementBugetAmtDto BugetAmtDto = applyService.ApplyDtl_SettlementBugetAmtSearch(projectId, "").FirstOrDefault(); SettlementBugetAmtDto BugetAmtDto = service.SettlementBugetAmtSearch(projectId).FirstOrDefault(); return(Json(BugetAmtDto)); }
public ActionResult ApplyDetail_SettlementDtl(int applyId, int settlementId, int quotationGroupId, int projectId, int supplierId) { SettlementService settlementService = new SettlementService(); // 查询当前项目下供应商执行的基本信息 SettlementMstDto settlementMstDto = settlementService.SettleDtlMainSearch(projectId.ToString(), supplierId.ToString(), settlementId.ToString(), quotationGroupId.ToString(), UserInfo.UserId).FirstOrDefault(); // 查询当前项目下的预算和结算信息 SettlementBugetAmtDto bugetAmtDto = service.ApplyDtl_SettlementBugetAmtSearch(projectId.ToString(), applyId.ToString()).FirstOrDefault(); if (settlementMstDto.ExecuteCycle == null) { settlementMstDto.ExecuteCycle = ""; } if (settlementMstDto.zhixingchengshi == "全国-") { settlementMstDto.zhixingchengshi = "全国"; } // 查询供应商结算的详细信息 List <SettlementDtlDto> lst = service.ApplyDtl_SettlementDtlByApplyIdAndSettlementIdSearch(applyId.ToString(), settlementId.ToString()); lst.AddRange(service.ApplyDtl_SettlementDtlByApplyIdAndSettlementIdSearch_shoudong(applyId.ToString(), settlementId.ToString())); return(Json(new { List = lst, MainObject = settlementMstDto, BugetAmtDto = bugetAmtDto })); }
public ActionResult LoadBugetAmt(string projectId) { SettlementBugetAmtDto BugetAmtDto = service.SettlementBugetAmtSearch(projectId).FirstOrDefault(); return(Json(new { BugetAmtDto = BugetAmtDto })); }