|  | @@ -118,7 +118,7 @@ public class ProjectReportRecordController extends BaseController {
 | 
												
													
														
															|  |  	 */
 |  |  	 */
 | 
												
													
														
															|  |  	@RequestMapping(value = "formData")
 |  |  	@RequestMapping(value = "formData")
 | 
												
													
														
															|  |  	public String formData(ProjectReportRecord projectReportRecord, Model model) {
 |  |  	public String formData(ProjectReportRecord projectReportRecord, Model model) {
 | 
												
													
														
															|  | -		ProjectReportRecord ReportRecord = new ProjectReportRecord();
 |  | 
 | 
												
													
														
															|  | 
 |  | +		ProjectReportRecord reportRecord = new ProjectReportRecord();
 | 
												
													
														
															|  |  		ProjectReportData projectReportData = new ProjectReportData();
 |  |  		ProjectReportData projectReportData = new ProjectReportData();
 | 
												
													
														
															|  |  		projectReportData.setFileStatus("1");
 |  |  		projectReportData.setFileStatus("1");
 | 
												
													
														
															|  |  		projectReportData.setId(projectReportRecord.getReport().getId());
 |  |  		projectReportData.setId(projectReportRecord.getReport().getId());
 | 
												
											
												
													
														
															|  | @@ -132,11 +132,16 @@ public class ProjectReportRecordController extends BaseController {
 | 
												
													
														
															|  |  				logger.error("Exception e"+e);
 |  |  				logger.error("Exception e"+e);
 | 
												
													
														
															|  |  			}
 |  |  			}
 | 
												
													
														
															|  |  		}
 |  |  		}
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  | -		ReportRecord.setReport(projectReportDatas);
 |  | 
 | 
												
													
														
															|  | -		ReportRecord.setCreateDate(new Date());
 |  | 
 | 
												
													
														
															|  | -		ReportRecord.setCreateBy(UserUtils.getUser());
 |  | 
 | 
												
													
														
															|  | -		model.addAttribute("projectReportRecord", ReportRecord);
 |  | 
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setRecordNum(projectReportDatas.getRecordNum());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setReport(projectReportDatas);
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setContractNum(projectReportDatas.getContractNum());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setContractName(projectReportDatas.getContractName());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setClientName(projectReportDatas.getClientName());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setProjectNum(projectReportDatas.getProjectNum());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setProjectName(projectReportDatas.getProjectName());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setCreateDate(new Date());
 | 
												
													
														
															|  | 
 |  | +		reportRecord.setCreateBy(UserUtils.getUser());
 | 
												
													
														
															|  | 
 |  | +		model.addAttribute("projectReportRecord", reportRecord);
 | 
												
													
														
															|  |  		return "modules/projectrecord/workContentFromAndView/projectReportRecordForm";
 |  |  		return "modules/projectrecord/workContentFromAndView/projectReportRecordForm";
 | 
												
													
														
															|  |  	}
 |  |  	}
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -201,6 +206,9 @@ public class ProjectReportRecordController extends BaseController {
 | 
												
													
														
															|  |  		}catch (Exception e){
 |  |  		}catch (Exception e){
 | 
												
													
														
															|  |  			addMessage(redirectAttributes, "保存报告归档失败");
 |  |  			addMessage(redirectAttributes, "保存报告归档失败");
 | 
												
													
														
															|  |  		}
 |  |  		}
 | 
												
													
														
															|  | 
 |  | +		if("completionArchive".equals(projectReportRecord.getCondition())){
 | 
												
													
														
															|  | 
 |  | +			return "redirect:"+Global.getAdminPath()+"/project/projectCompletionPigeonhole/?repage";
 | 
												
													
														
															|  | 
 |  | +		}
 | 
												
													
														
															|  |  		return "redirect:"+Global.getAdminPath()+"/projectcontentinfo/projectReportRecord/?repage";
 |  |  		return "redirect:"+Global.getAdminPath()+"/projectcontentinfo/projectReportRecord/?repage";
 | 
												
													
														
															|  |  	}
 |  |  	}
 | 
												
													
														
															|  |  	/**
 |  |  	/**
 | 
												
											
												
													
														
															|  | @@ -208,7 +216,7 @@ public class ProjectReportRecordController extends BaseController {
 | 
												
													
														
															|  |  	 */
 |  |  	 */
 | 
												
													
														
															|  |  	@RequestMapping(value = "store")
 |  |  	@RequestMapping(value = "store")
 | 
												
													
														
															|  |  	public String store(ProjectReportRecord projectReportRecord, Model model, RedirectAttributes redirectAttributes) throws Exception{
 |  |  	public String store(ProjectReportRecord projectReportRecord, Model model, RedirectAttributes redirectAttributes) throws Exception{
 | 
												
													
														
															|  | -		if (!beanValidator(model, projectReportRecord)){
 |  | 
 | 
												
													
														
															|  | 
 |  | +		/*if (!beanValidator(model, projectReportRecord)){
 | 
												
													
														
															|  |  			return form(projectReportRecord, model);
 |  |  			return form(projectReportRecord, model);
 | 
												
													
														
															|  |  		}
 |  |  		}
 | 
												
													
														
															|  |  		if(!projectReportRecord.getIsNewRecord()){//编辑表单保存
 |  |  		if(!projectReportRecord.getIsNewRecord()){//编辑表单保存
 | 
												
											
												
													
														
															|  | @@ -221,7 +229,7 @@ public class ProjectReportRecordController extends BaseController {
 | 
												
													
														
															|  |  			projectReportRecord.setOfficeId(user.getOffice().getId());
 |  |  			projectReportRecord.setOfficeId(user.getOffice().getId());
 | 
												
													
														
															|  |  			projectReportRecord.setStatus("1");
 |  |  			projectReportRecord.setStatus("1");
 | 
												
													
														
															|  |  			projectReportRecordService.save(projectReportRecord);//保存
 |  |  			projectReportRecordService.save(projectReportRecord);//保存
 | 
												
													
														
															|  | -		}
 |  | 
 | 
												
													
														
															|  | 
 |  | +		}*/
 | 
												
													
														
															|  |  		addMessage(redirectAttributes, "保存报告归档成功");
 |  |  		addMessage(redirectAttributes, "保存报告归档成功");
 | 
												
													
														
															|  |  		return "redirect:"+Global.getAdminPath()+"/projectcontentinfo/projectReportRecord/?repage";
 |  |  		return "redirect:"+Global.getAdminPath()+"/projectcontentinfo/projectReportRecord/?repage";
 | 
												
													
														
															|  |  	}
 |  |  	}
 |