|
|
@ -8,9 +8,9 @@ namespace Pingchuan.BeijingSafeguard.BLL |
|
|
|
{ |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
@ -35,11 +35,12 @@ namespace Pingchuan.BeijingSafeguard.BLL |
|
|
|
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 |
|
|
|
{ |
|
|
|
Id = taskId, |
|
|
|
OrgId = orgId, |
|
|
|
UserId = userId, |
|
|
|
Region = region, |
|
|
|
Longitude = longitude, |
|
|
|