|  | @ -8,9 +8,9 @@ namespace Pingchuan.BeijingSafeguard.BLL | 
			
		
	
		
		
			
				
					|  |  | { |  |  | { | 
			
		
	
		
		
			
				
					|  |  |     public class TaskBLL |  |  |     public class TaskBLL | 
			
		
	
		
		
			
				
					|  |  |     { |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |         public static void Add(int userId, string taskId, string region, decimal longitude, decimal latitude, decimal height, decimal simulatedDuration, decimal simulatedInterval, DateTime releaseTime, int resultState, string resultMessage) |  |  |         public static void Add(int orgId, int userId, string taskId, string region, decimal longitude, decimal latitude, decimal height, decimal simulatedDuration, decimal simulatedInterval, DateTime releaseTime, int resultState, string resultMessage) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |             Task task = ToModel(userId, taskId, region, longitude, latitude, height, simulatedDuration, simulatedInterval, releaseTime, resultState, resultMessage); |  |  |             Task task = ToModel(orgId, userId, taskId, region, longitude, latitude, height, simulatedDuration, simulatedInterval, releaseTime, resultState, resultMessage); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             TaskDAL.Add(task); |  |  |             TaskDAL.Add(task); | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -35,11 +35,12 @@ namespace Pingchuan.BeijingSafeguard.BLL | 
			
		
	
		
		
			
				
					|  |  |             return TaskDAL.Statistics(typeCode, fromTime, toTime, pageIndex, pageSize); |  |  |             return TaskDAL.Statistics(typeCode, fromTime, toTime, pageIndex, pageSize); | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |         public static Task ToModel(int userId, string taskId,  string region, decimal longitude, decimal latitude, decimal height, decimal simulatedDuration, decimal simulatedInterval, DateTime releaseTime, int resultState, string resultMessage) |  |  |         public static Task ToModel(int orgId, int userId, string taskId,  string region, decimal longitude, decimal latitude, decimal height, decimal simulatedDuration, decimal simulatedInterval, DateTime releaseTime, int resultState, string resultMessage) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         { |  |  |         { | 
			
		
	
		
		
			
				
					|  |  |             return new Task |  |  |             return new Task | 
			
		
	
		
		
			
				
					|  |  |             { |  |  |             { | 
			
		
	
		
		
			
				
					|  |  |                 Id = taskId, |  |  |                 Id = taskId, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 OrgId = orgId, | 
			
		
	
		
		
			
				
					|  |  |                 UserId = userId, |  |  |                 UserId = userId, | 
			
		
	
		
		
			
				
					|  |  |                 Region = region, |  |  |                 Region = region, | 
			
		
	
		
		
			
				
					|  |  |                 Longitude = longitude, |  |  |                 Longitude = longitude, | 
			
		
	
	
		
		
			
				
					|  | 
 |