修改安全月报
This commit is contained in:
		
							parent
							
								
									1557fcc77d
								
							
						
					
					
						commit
						ad8f61470a
					
				| 
						 | 
					@ -77,9 +77,13 @@ namespace BLL
 | 
				
			||||||
        /// <param name="monthReportId">月报告主键</param>
 | 
					        /// <param name="monthReportId">月报告主键</param>
 | 
				
			||||||
        public static void DeleteCheckSortsByMonthReportId(string monthReportId)
 | 
					        public static void DeleteCheckSortsByMonthReportId(string monthReportId)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            var q = (from x in db.Manager_CheckSortC where x.MonthReportId == monthReportId select x).ToList();
 | 
					            var q = Funs.DB.Manager_CheckSortC.Where(x=>x.MonthReportId== monthReportId).ToList();
 | 
				
			||||||
            db.Manager_CheckSortC.DeleteAllOnSubmit(q);
 | 
					            if (q.Count>0)
 | 
				
			||||||
            db.SubmitChanges();
 | 
					            {
 | 
				
			||||||
 | 
					                Funs.DB.Manager_CheckSortC.DeleteAllOnSubmit(q);
 | 
				
			||||||
 | 
					                Funs.DB.SubmitChanges();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					           
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue