public void BindComprehensiveReport(ComprehensiveReport comprehensiveReport)
 {
     lbTitle.Text = string.Format("隔河岩水电站{0}年{1}月技术监督月报",
         comprehensiveReport.ReportYear.ToString(),
         comprehensiveReport.ReportMonth.ToString());
     lbComment.Text = comprehensiveReport.Comment;
 }
Example #2
0
 public bool AddCurrentTimeComprehensiveReport()
 {
     ComprehensiveReportRepository comprehensiveReportRepository = new ComprehensiveReportRepository();
     ComprehensiveReport comprehensiveReport = new ComprehensiveReport
     {
         ReportYear = int.Parse(YearAndMonControl1.Year),
         ReportMonth = int.Parse(YearAndMonControl1.Mon)
     };
     return comprehensiveReportRepository.Add(comprehensiveReport);
 }